summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/main.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-01-15 21:47:36 +0000
committerjhb <jhb@FreeBSD.org>2003-01-15 21:47:36 +0000
commit8234b5cd64bc8b2cec7f828910659662657049ea (patch)
tree648bdeaf5b1cd1a358b29fb8ecb8752b65a08e56 /usr.sbin/sysinstall/main.c
parent1917b354f1dc22d30cbf48ab2a33683be6d7c56f (diff)
downloadFreeBSD-src-8234b5cd64bc8b2cec7f828910659662657049ea.zip
FreeBSD-src-8234b5cd64bc8b2cec7f828910659662657049ea.tar.gz
Add a function driverFloppyCheck() that asks the user if they would like to
load drivers from the driver floppy if the "driver_floppy" variable is set in the kernel environment and call this function after probing devices but before displaying the main menu. X-MFC after: as soon as I finish committing to current Approved by: re@ (blanket)
Diffstat (limited to 'usr.sbin/sysinstall/main.c')
-rw-r--r--usr.sbin/sysinstall/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/main.c b/usr.sbin/sysinstall/main.c
index b9ac365..3b1df90 100644
--- a/usr.sbin/sysinstall/main.c
+++ b/usr.sbin/sysinstall/main.c
@@ -127,6 +127,12 @@ main(int argc, char **argv)
/* Probe for all relevant devices on the system */
deviceGetAll();
+ /* Prompt for the driver floppy if appropriate. */
+ if (!pvariable_get("driverFloppyCheck")) {
+ driverFloppyCheck();
+ pvariable_set("driverFloppyCheck=1");
+ }
+
/* First, see if we have any arguments to process (and argv[0] counts if it's not "sysinstall") */
if (!RunningAsInit) {
int i, start_arg;
OpenPOWER on IntegriCloud