summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/floppy.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-02-10 18:31:27 +0000
committerjkh <jkh@FreeBSD.org>1998-02-10 18:31:27 +0000
commit7ef8a69bf63493cd9d6842c0494f0fe4b5dbccbb (patch)
tree1ae3a82c0af6efc6e0121917323ebd2818ae76c0 /usr.sbin/sysinstall/floppy.c
parent77f6cc7d27bf3a1b831547f1825ffa76a1e3c82c (diff)
downloadFreeBSD-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.c15
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)
{
OpenPOWER on IntegriCloud