From 7ef8a69bf63493cd9d6842c0494f0fe4b5dbccbb Mon Sep 17 00:00:00 2001 From: jkh Date: Tue, 10 Feb 1998 18:31:27 +0000 Subject: 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. --- usr.sbin/sysinstall/floppy.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'usr.sbin/sysinstall/floppy.c') 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 -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) { -- cgit v1.1