diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-25 18:41:10 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-25 18:41:10 +0000 |
commit | c79c2d405d9a08b4ad2ac1827b60d5f99caac653 (patch) | |
tree | 9d361e5885fbb3b741137a9470b2e57033518317 /usr.sbin/sysinstall/disks.c | |
parent | 3c719ec73164c2d007187695f7e1bd675adefb1c (diff) | |
download | FreeBSD-src-c79c2d405d9a08b4ad2ac1827b60d5f99caac653.zip FreeBSD-src-c79c2d405d9a08b4ad2ac1827b60d5f99caac653.tar.gz |
Make "Fake" turn off more potentially system-nuking options.
Diffstat (limited to 'usr.sbin/sysinstall/disks.c')
-rw-r--r-- | usr.sbin/sysinstall/disks.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c index f6d899d..cf8ee98 100644 --- a/usr.sbin/sysinstall/disks.c +++ b/usr.sbin/sysinstall/disks.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: disks.c,v 1.50 1996/06/08 09:08:32 jkh Exp $ + * $Id: disks.c,v 1.51 1996/06/11 13:07:57 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -543,12 +543,14 @@ diskPartitionWrite(dialogMenuItem *self) int ret; msgNotify("Running bad block scan on partition %s", c1->name); - ret = vsystem("bad144 -v /dev/r%s 1234", c1->name); - if (ret) - msgConfirm("Bad144 init on %s returned status of %d!", c1->name, ret); - ret = vsystem("bad144 -v -s /dev/r%s", c1->name); - if (ret) - msgConfirm("Bad144 scan on %s returned status of %d!", c1->name, ret); + if (!Fake) { + ret = vsystem("bad144 -v /dev/r%s 1234", c1->name); + if (ret) + msgConfirm("Bad144 init on %s returned status of %d!", c1->name, ret); + ret = vsystem("bad144 -v -s /dev/r%s", c1->name); + if (ret) + msgConfirm("Bad144 scan on %s returned status of %d!", c1->name, ret); + } } } } |