diff options
author | kensmith <kensmith@FreeBSD.org> | 2008-12-17 02:52:45 +0000 |
---|---|---|
committer | kensmith <kensmith@FreeBSD.org> | 2008-12-17 02:52:45 +0000 |
commit | d4bb3724837cfa88d19d14129245cece72f9f7ab (patch) | |
tree | 06adc4fdcae550045c182659e7fb447fbabb3a1b /usr.sbin/sysinstall/media.c | |
parent | ea41cce94c12f9b48c1557f7378c6ee84f2a25bf (diff) | |
download | FreeBSD-src-d4bb3724837cfa88d19d14129245cece72f9f7ab.zip FreeBSD-src-d4bb3724837cfa88d19d14129245cece72f9f7ab.tar.gz |
As threatened a while ago, remove support for tape media. Reports vary
but most people believe it stopped working a while ago.
Diffstat (limited to 'usr.sbin/sysinstall/media.c')
-rw-r--r-- | usr.sbin/sysinstall/media.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c index 5af902a..643f28b 100644 --- a/usr.sbin/sysinstall/media.c +++ b/usr.sbin/sysinstall/media.c @@ -260,61 +260,6 @@ mediaSetDOS(dialogMenuItem *self) return (mediaDevice ? DITEM_LEAVE_MENU : DITEM_FAILURE); } -static int -tapeHook(dialogMenuItem *self) -{ - return genericHook(self, DEVICE_TYPE_TAPE); -} - -/* - * Return 1 if we successfully found and set the installation type to - * be a tape drive. - */ -int -mediaSetTape(dialogMenuItem *self) -{ - Device **devs; - int cnt; - - mediaClose(); - devs = deviceFind(NULL, DEVICE_TYPE_TAPE); - cnt = deviceCount(devs); - if (!cnt) { - msgConfirm("No tape drive devices found! Please check that your system's configuration\n" - "is correct. For more information, consult the hardware guide in the Doc\n" - "menu."); - return DITEM_FAILURE | DITEM_CONTINUE; - } - else if (cnt > 1) { - DMenu *menu; - int status; - - menu = deviceCreateMenu(&MenuMediaTape, DEVICE_TYPE_TAPE, tapeHook, NULL); - if (!menu) - msgFatal("Unable to create tape drive menu! Something is seriously wrong."); - status = dmenuOpenSimple(menu, FALSE); - free(menu); - if (!status) - return DITEM_FAILURE; - } - else - mediaDevice = devs[0]; - if (mediaDevice) { - char *val; - - val = msgGetInput("/var/tmp", "Please enter the name of a temporary directory containing\n" - "sufficient space for holding the contents of this tape (or\n" - "tapes). The contents of this directory will be removed\n" - "after installation, so be sure to specify a directory that\n" - "can be erased afterwards!\n"); - if (!val) - mediaDevice = NULL; - else - mediaDevice->private = strdup(val); - } - return (mediaDevice ? DITEM_LEAVE_MENU : DITEM_FAILURE); -} - /* * Return 0 if we successfully found and set the installation type to * be an ftp server |