diff options
author | jkh <jkh@FreeBSD.org> | 1996-10-02 08:25:11 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-10-02 08:25:11 +0000 |
commit | 4259119b91433f42ce5dbe3c5886074399ca946a (patch) | |
tree | 557611a86dc2b780f91e10d1a76e05fb975ceccd /usr.sbin | |
parent | 1fa5cda8efba7d1009e3689bfe44b7cd3cb1f6d3 (diff) | |
download | FreeBSD-src-4259119b91433f42ce5dbe3c5886074399ca946a.zip FreeBSD-src-4259119b91433f42ce5dbe3c5886074399ca946a.tar.gz |
Fixes and a place-holder for future work.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sade/install.c | 19 | ||||
-rw-r--r-- | usr.sbin/sysinstall/install.c | 19 | ||||
-rw-r--r-- | usr.sbin/sysinstall/media.c | 4 |
3 files changed, 28 insertions, 14 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index f17abf3..f1c4562 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.120 1996/10/01 04:56:32 jkh Exp $ + * $Id: install.c,v 1.121 1996/10/01 14:08:15 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -50,6 +50,7 @@ #include <sys/mount.h> static void create_termcap(void); +static void save_userconfig_to_kernel(char *); #define TERMCAP_FILE "/usr/share/misc/termcap" @@ -402,6 +403,7 @@ installNovice(dialogMenuItem *self) "scroll-lock feature. You can also chose \"No\" at the next\n" "prompt and go back into the installation menus to try and retry\n" "whichever operations have failed."); + mediaDevice->shutdown(mediaDevice); return i | DITEM_RECREATE; } @@ -564,10 +566,10 @@ installCommit(dialogMenuItem *self) } i = distExtractAll(self); - if (DITEM_STATUS(i) == DITEM_FAILURE) - (void)installFixup(self); - else + if (DITEM_STATUS(i) != DITEM_FAILURE) i = installFixup(self); + else if (!(Dists & DIST_BIN)) + (void)installFixup(self); /* Don't print this if we're express or novice installing - they have their own error reporting */ if (strcmp(str, "express") && strcmp(str, "novice")) { @@ -619,8 +621,8 @@ installFixup(dialogMenuItem *self) } } - /* Snapshot the dset changes back */ - vsystem("/sbin/dset -v -k /kernel"); + /* Snapshot any boot -c changes back to the GENERIC kernel */ + save_userconfig_to_kernel("/kernel"); /* Resurrect /dev after bin distribution screws it up */ if (RunningAsInit) { @@ -907,3 +909,8 @@ create_termcap(void) } } +static void +save_userconfig_to_kernel(char *kern) +{ + /* place-holder for now */ +} diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index f17abf3..f1c4562 100644 --- a/usr.sbin/sysinstall/install.c +++ b/usr.sbin/sysinstall/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.120 1996/10/01 04:56:32 jkh Exp $ + * $Id: install.c,v 1.121 1996/10/01 14:08:15 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -50,6 +50,7 @@ #include <sys/mount.h> static void create_termcap(void); +static void save_userconfig_to_kernel(char *); #define TERMCAP_FILE "/usr/share/misc/termcap" @@ -402,6 +403,7 @@ installNovice(dialogMenuItem *self) "scroll-lock feature. You can also chose \"No\" at the next\n" "prompt and go back into the installation menus to try and retry\n" "whichever operations have failed."); + mediaDevice->shutdown(mediaDevice); return i | DITEM_RECREATE; } @@ -564,10 +566,10 @@ installCommit(dialogMenuItem *self) } i = distExtractAll(self); - if (DITEM_STATUS(i) == DITEM_FAILURE) - (void)installFixup(self); - else + if (DITEM_STATUS(i) != DITEM_FAILURE) i = installFixup(self); + else if (!(Dists & DIST_BIN)) + (void)installFixup(self); /* Don't print this if we're express or novice installing - they have their own error reporting */ if (strcmp(str, "express") && strcmp(str, "novice")) { @@ -619,8 +621,8 @@ installFixup(dialogMenuItem *self) } } - /* Snapshot the dset changes back */ - vsystem("/sbin/dset -v -k /kernel"); + /* Snapshot any boot -c changes back to the GENERIC kernel */ + save_userconfig_to_kernel("/kernel"); /* Resurrect /dev after bin distribution screws it up */ if (RunningAsInit) { @@ -907,3 +909,8 @@ create_termcap(void) } } +static void +save_userconfig_to_kernel(char *kern) +{ + /* place-holder for now */ +} diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c index 33ac214..b59a415 100644 --- a/usr.sbin/sysinstall/media.c +++ b/usr.sbin/sysinstall/media.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: media.c,v 1.56 1996/10/02 00:41:40 jkh Exp $ + * $Id: media.c,v 1.57 1996/10/02 02:02:18 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -283,7 +283,7 @@ mediaSetFTP(dialogMenuItem *self) "A URL looks like this: ftp://<hostname>/<path>\n" "Where <path> is relative to the anonymous ftp directory or the\n" "home directory of the user being logged in as."); - if (!cp || !*cp) + if (!cp || !*cp || !strcmp(cp, "ftp://")) return DITEM_FAILURE | what; } if (strncmp("ftp://", cp, 6)) { |