diff options
author | jkh <jkh@FreeBSD.org> | 1998-07-18 09:42:02 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-07-18 09:42:02 +0000 |
commit | c1d10d181de9930858213c26964bf148cbe069b5 (patch) | |
tree | bfa3f95ddcd21759181a743fd429f5a33e0d0ad1 /usr.sbin/sysinstall/floppy.c | |
parent | 7466f92c1a75cdfc614e9b0f5eccf1f8afb31d06 (diff) | |
download | FreeBSD-src-c1d10d181de9930858213c26964bf148cbe069b5.zip FreeBSD-src-c1d10d181de9930858213c26964bf148cbe069b5.tar.gz |
MF22: Paul Traina's changes.
Diffstat (limited to 'usr.sbin/sysinstall/floppy.c')
-rw-r--r-- | usr.sbin/sysinstall/floppy.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/usr.sbin/sysinstall/floppy.c b/usr.sbin/sysinstall/floppy.c index ec3f70c..ec87289 100644 --- a/usr.sbin/sysinstall/floppy.c +++ b/usr.sbin/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.27 1998/02/08 20:18:19 jkh Exp $ + * $Id: floppy.c,v 1.28 1998/02/10 18:31:22 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -73,10 +73,14 @@ mediaInitFloppy(Device *dev) } msgDebug("Init floppy called for %s distribution.\n", distWanted ? distWanted : "some"); - if (!distWanted) - msgConfirm("Please insert floppy in %s", dev->description); - else - msgConfirm("Please insert floppy containing %s in %s", distWanted, dev->description); + + if (!variable_get(VAR_NONINTERACTIVE)) { + if (!distWanted) + msgConfirm("Please insert floppy in %s", dev->description); + else + msgConfirm("Please insert floppy containing %s in %s", + distWanted, dev->description); + } memset(&dosargs, 0, sizeof dosargs); dosargs.fspec = dev->devname; @@ -141,7 +145,9 @@ mediaShutdownFloppy(Device *dev) else { floppyMounted = FALSE; msgDebug("Floppy unmounted successfully.\n"); - msgConfirm("You may remove the floppy from %s", dev->description); + if (!variable_get(VAR_NONINTERACTIVE)) + msgConfirm("You may remove the floppy from %s", + dev->description); } } } |