diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-03-21 04:49:59 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-03-21 04:49:59 +0000 |
| commit | 61e660abb9d19fec0b6b3db60751944cec5d0d4f (patch) | |
| tree | 02cf2d35cf3d50e8a6730c15525b268fef93dd9a /release/sysinstall | |
| parent | c35e478053525bda7a53e12311011b3bf51dd939 (diff) | |
Notes
Diffstat (limited to 'release/sysinstall')
| -rw-r--r-- | release/sysinstall/Makefile | 2 | ||||
| -rw-r--r-- | release/sysinstall/floppy.c | 6 | ||||
| -rw-r--r-- | release/sysinstall/main.c | 28 | ||||
| -rw-r--r-- | release/sysinstall/media.c | 4 | ||||
| -rw-r--r-- | release/sysinstall/menus.c | 6 | ||||
| -rw-r--r-- | release/sysinstall/sysinstall.h | 7 |
6 files changed, 18 insertions, 35 deletions
diff --git a/release/sysinstall/Makefile b/release/sysinstall/Makefile index 0eb723bb2e15..0a2440fa7993 100644 --- a/release/sysinstall/Makefile +++ b/release/sysinstall/Makefile @@ -13,7 +13,7 @@ SRCS= anonFTP.c apache.c attr.c cdrom.c command.c config.c devices.c \ msg.c network.c nfs.c options.c package.c register.c samba.c system.c \ tape.c tcpip.c termcap.c ufs.c user.c variable.c wizard.c \ uc_eisa.c uc_isa.c uc_kmem.c uc_list.c uc_main.c uc_pci.c \ - uc_scsi.c keymap.h + uc_scsi.c keymap.h variable_load.c CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR} -I/sys CFLAGS+= -DUC_PRIVATE -DKERN_NO_SYMBOLS -DSAVE_USERCONFIG diff --git a/release/sysinstall/floppy.c b/release/sysinstall/floppy.c index 7e40e1579ccb..bce117e88306 100644 --- a/release/sysinstall/floppy.c +++ b/release/sysinstall/floppy.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: floppy.c,v 1.16.2.3 1997/01/22 00:28:54 jkh Exp $ + * $Id: floppy.c,v 1.16.2.4 1997/01/24 21:05:52 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -129,9 +129,9 @@ mediaInitFloppy(Device *dev) msgDebug("Init floppy called for %s distribution.\n", distWanted ? distWanted : "some"); if (!distWanted) - msgConfirm("Please insert floppy for %s", dev->description); + msgConfirm("Please insert floppy in %s", dev->description); else - msgConfirm("Please insert floppy containing %s for %s", distWanted, dev->description); + msgConfirm("Please insert floppy containing %s in %s", distWanted, dev->description); memset(&dosargs, 0, sizeof dosargs); dosargs.fspec = dev->devname; diff --git a/release/sysinstall/main.c b/release/sysinstall/main.c index 159eff3b691b..0a5b00656b09 100644 --- a/release/sysinstall/main.c +++ b/release/sysinstall/main.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: main.c,v 1.28.2.9 1997/02/15 15:41:42 jkh Exp $ + * $Id: main.c,v 1.28.2.10 1997/02/20 16:46:39 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -118,32 +118,6 @@ main(int argc, char **argv) } fclose(fp); } -#if defined(LOAD_CONFIG_FILE) - else { - /* If we have a compiled-in startup config file name on - the floppy, look for it and try to load it on startup */ - extern char *distWanted; - - /* Tell mediaSetFloppy() to try floppy now */ - distWanted = LOAD_CONFIG_FILE; - - /* Try to open the floppy drive if we can do that first */ - if (DITEM_STATUS(mediaSetFloppy(NULL)) != DITEM_FAILURE && mediaDevice->init(mediaDevice)) { - fp = mediaDevice->get(mediaDevice, LOAD_CONFIG_FILE, TRUE); - if (fp) { - msgNotify("Loading %s pre-configuration file", LOAD_CONFIG_FILE); - while (fgets(buf, sizeof buf, fp)) { - if (DITEM_STATUS(dispatchCommand(buf)) != DITEM_SUCCESS) { - msgDebug("Command `%s' failed - rest of script aborted.\n", buf); - break; - } - } - fclose(fp); - } - mediaDevice->shutdown(mediaDevice); - } - } -#endif } /* Begin user dialog at outer menu */ diff --git a/release/sysinstall/media.c b/release/sysinstall/media.c index 822e5c635514..e2013ef8398b 100644 --- a/release/sysinstall/media.c +++ b/release/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.62.2.14 1997/03/07 16:16:58 jkh Exp $ + * $Id: media.c,v 1.62.2.15 1997/03/11 16:41:15 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -96,7 +96,7 @@ cpioVerbosity() return ""; } -static void +void mediaClose(void) { if (mediaDevice) diff --git a/release/sysinstall/menus.c b/release/sysinstall/menus.c index e4a305cf736b..ccd9a419a39f 100644 --- a/release/sysinstall/menus.c +++ b/release/sysinstall/menus.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: menus.c,v 1.89.2.30 1997/03/14 07:01:16 jkh Exp $ + * $Id: menus.c,v 1.89.2.31 1997/03/16 04:06:39 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -213,6 +213,7 @@ DMenu MenuIndex = { { "Commit", "Commit any pending actions (dangerous!)", NULL, installCustomCommit }, { "Console settings", "Customize system console behavior.", NULL, dmenuSubmenu, NULL, &MenuSyscons }, { "Configure", "The system configuration menu.", NULL, dmenuSubmenu, NULL, &MenuConfigure }, + { "Defaults, Load", "Load default settings.", NULL, variableLoad }, { "Device, Mouse", "The mouse configuration menu.", NULL, dmenuSubmenu, NULL, &MenuMouse }, { "Disklabel", "The disk Label editor", NULL, diskLabelEditor }, { "Dists, All", "Root of the distribution tree.", NULL, dmenuSubmenu, NULL, &MenuDistributions }, @@ -305,6 +306,7 @@ DMenu MenuInitial = { { "8 Fixit", "Go into repair mode with CDROM or floppy, or start a shell.", NULL, dmenuSubmenu, NULL, &MenuFixit }, { "9 Upgrade", "Upgrade an existing system", NULL, installUpgrade }, { "c Configure", "Do post-install configuration of FreeBSD", NULL, dmenuSubmenu, NULL, &MenuConfigure }, + { "l Load Config","Load default install configuration", NULL, variableLoad }, { "0 Index", "Glossary of functions", NULL, dmenuSubmenu, NULL, &MenuIndex }, { NULL } }, }; @@ -510,6 +512,8 @@ DMenu MenuMediaFTP = { VAR_FTP_PATH "=ftp://ftp.nl.freebsd.org/pub/FreeBSD/" }, { "Hong Kong", "ftp.hk.super.net", NULL, dmenuSetVariable, NULL, VAR_FTP_PATH "=ftp://ftp.hk.super.net/pub/FreeBSD/" }, + { "Iceland", "ftp.is.freebsd.org", NULL, dmenuSetVariable, NULL, + VAR_FTP_PATH "=ftp://ftp.is.freebsd.org/pub/FreeBSD/" }, { "Ireland", "ftp.ie.freebsd.org", NULL, dmenuSetVariable, NULL, VAR_FTP_PATH "=ftp://ftp.ie.freebsd.org/pub/FreeBSD/" }, { "Israel", "ftp.il.freebsd.org", NULL, dmenuSetVariable, NULL, diff --git a/release/sysinstall/sysinstall.h b/release/sysinstall/sysinstall.h index 7b3a07ac0efa..ca6001dc5725 100644 --- a/release/sysinstall/sysinstall.h +++ b/release/sysinstall/sysinstall.h @@ -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: sysinstall.h,v 1.82.2.26 1997/03/09 22:37:59 jkh Exp $ + * $Id: sysinstall.h,v 1.82.2.27 1997/03/15 16:23:11 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -114,6 +114,7 @@ #define VAR_HOSTNAME "hostname" #define VAR_IFCONFIG "ifconfig_" #define VAR_INTERFACES "network_interfaces" +#define VAR_INSTALL_CFG "installConfig" #define VAR_INSTALL_ROOT "installRoot" #define VAR_IPADDR "ipaddr" #define VAR_LABEL "label" @@ -561,6 +562,7 @@ extern u_char default_scrnmap[]; /* media.c */ extern char *cpioVerbosity(void); +extern void mediaClose(void); extern int mediaTimeout(void); extern int mediaSetCDROM(dialogMenuItem *self); extern int mediaSetFloppy(dialogMenuItem *self); @@ -691,6 +693,9 @@ extern char *variable_get(char *var); extern void variable_unset(char *var); extern char *variable_get_value(char *var, char *prompt); +/* variable_load.c */ +extern int variableLoad(dialogMenuItem *self); + /* wizard.c */ extern void slice_wizard(Disk *d); |
