diff options
author | jkh <jkh@FreeBSD.org> | 1998-02-10 18:31:27 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-02-10 18:31:27 +0000 |
commit | 7ef8a69bf63493cd9d6842c0494f0fe4b5dbccbb (patch) | |
tree | 1ae3a82c0af6efc6e0121917323ebd2818ae76c0 /usr.sbin/sysinstall/floppy.c | |
parent | 77f6cc7d27bf3a1b831547f1825ffa76a1e3c82c (diff) | |
download | FreeBSD-src-7ef8a69bf63493cd9d6842c0494f0fe4b5dbccbb.zip FreeBSD-src-7ef8a69bf63493cd9d6842c0494f0fe4b5dbccbb.tar.gz |
Totally change the way that devices are made in the MFS and subsequently
probed in sysinstall. Rather than make template devices and use up lots
of inodes, also restricting the number of devices that can be dealt with,
mknod all necessary devices as necessary using built-in information.
This removes a number of constraints on the number and type of devices
that sysinstall can see.
Diffstat (limited to 'usr.sbin/sysinstall/floppy.c')
-rw-r--r-- | usr.sbin/sysinstall/floppy.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/usr.sbin/sysinstall/floppy.c b/usr.sbin/sysinstall/floppy.c index c5bae4a..ec3f70c 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.26 1998/01/16 15:07:54 jkh Exp $ + * $Id: floppy.c,v 1.27 1998/02/08 20:18:19 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -53,23 +53,10 @@ #undef MSDOSFS #include <ufs/ufs/ufsmount.h> -static Device *floppyDev; static Boolean floppyMounted; char *distWanted; -/* For finding floppies */ -static int -floppyChoiceHook(dialogMenuItem *self) -{ - Device **devs; - - devs = deviceFind(self->prompt, DEVICE_TYPE_FLOPPY); - if (devs) - floppyDev = devs[0]; - return devs ? DITEM_LEAVE_MENU : DITEM_FAILURE; -} - Boolean mediaInitFloppy(Device *dev) { |