diff options
author | peter <peter@FreeBSD.org> | 1995-09-18 16:53:06 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-09-18 16:53:06 +0000 |
commit | 89e0ab3dba9ef542f52287fd1820072c4de7d393 (patch) | |
tree | d8d32666544a3c5d9db7a5472c5fa4292681da66 /usr.sbin/sade/config.c | |
parent | ea496cc61fd7886ad990ab3876ac97ea2530a3bd (diff) | |
download | FreeBSD-src-89e0ab3dba9ef542f52287fd1820072c4de7d393.zip FreeBSD-src-89e0ab3dba9ef542f52287fd1820072c4de7d393.tar.gz |
This mega-commit brings in Jordan's latest sysinstall version..
This looks like it was developed offline, and is being spammed over the
top of the existing. "That's fine by me! I dont really care how you do
it, just get it in there..." said Jordan in a conversation a short while
ago...
Diffstat (limited to 'usr.sbin/sade/config.c')
-rw-r--r-- | usr.sbin/sade/config.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index ee82d28..75f0f9c 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: config.c,v 1.15.2.28 1995/06/10 08:24:28 jkh Exp $ + * $Id: config.c,v 1.16.2.2 1995/07/21 11:45:36 rgrimes Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -114,7 +114,7 @@ fstype_short(Chunk *c1) return "sw"; } else if (c1->type == fat) - return "rw"; + return "ro"; return "bog"; } @@ -362,12 +362,8 @@ configRoutedFlags(char *str) int configPackages(char *str) { - int i, pstat; - pid_t pid; Boolean onCD; - msgConfirm("Warning: This utility (pkg_manage) is still somewhat experimental\nand may not function for all packages. If it fails to load the\npackages you want, try running it directly once the system is up or use the\npkg_add, pkg_info and pkg_delete utilities directly."); - i = -1; /* If we're running as init, we know that a CD in the drive is probably ours */ onCD = file_readable("/cdrom/packages"); if (!onCD && RunningAsInit) { @@ -376,19 +372,7 @@ configPackages(char *str) onCD = TRUE; } } - - if (!(pid = fork())) { - if (onCD && chdir("/cdrom/packages/All")) - exit(1); - execl("/usr/sbin/pkg_manage", "/usr/sbin/pkg_manage", (char *)NULL); - exit(1); - } - else { - pid = waitpid(pid, (int *)&pstat, 0); - i = (pid == -1) ? -1 : WEXITSTATUS(pstat); - } - if (i != 0 && isDebug()) - msgDebug("pkg_manage returns status of %d\n", i); + /* XXX Construct some sort of menu here using an INDEX file from /cdrom/packages XXX */ return 0; } |