summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/floppy.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-04-23 01:29:35 +0000
committerjkh <jkh@FreeBSD.org>1996-04-23 01:29:35 +0000
commite665fee23a1e8faaacaceda94ce45295956dee10 (patch)
tree61dd517d68f78c02b32b70a1ec457f1509801e87 /usr.sbin/sysinstall/floppy.c
parent70a317a618a87b0eac973736356fadfa45b35959 (diff)
downloadFreeBSD-src-e665fee23a1e8faaacaceda94ce45295956dee10.zip
FreeBSD-src-e665fee23a1e8faaacaceda94ce45295956dee10.tar.gz
Bring this into sync.
I still have a _very very annoying_ display bug which occurs when a menu item causes a submenu to be displayed - the screen repaints for the original menu (which is restored upon return from the submenu) are off by about 4 characters. I've tried restoring the screen, the cursor position, you name it - same deal. Grrrr! This commit is my first step in trying to get someone else to help me look into this one since I'm just tearing my hair out at this point!
Diffstat (limited to 'usr.sbin/sysinstall/floppy.c')
-rw-r--r--usr.sbin/sysinstall/floppy.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/usr.sbin/sysinstall/floppy.c b/usr.sbin/sysinstall/floppy.c
index 2479bb2..16b5301 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.9 1996/03/02 07:31:52 jkh Exp $
+ * $Id: floppy.c,v 1.10 1996/04/13 13:31:34 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -81,13 +81,11 @@ getRootFloppy(void)
devs = deviceFind(NULL, DEVICE_TYPE_FLOPPY);
cnt = deviceCount(devs);
if (!cnt) {
- dialog_clear();
msgConfirm("No floppy devices found! Something is seriously wrong!");
return -1;
}
else if (cnt == 1) {
floppyDev = devs[0];
- dialog_clear();
msgConfirm("Please insert the ROOT floppy in %s and press [ENTER]", floppyDev->description);
}
else {
@@ -117,19 +115,14 @@ mediaInitFloppy(Device *dev)
return TRUE;
if (Mkdir("/dist", NULL)) {
- dialog_clear();
msgConfirm("Unable to make directory mountpoint for %s!", dev->devname);
return FALSE;
}
msgDebug("Init floppy called for %s distribution.\n", distWanted ? distWanted : "some");
- if (!distWanted) {
- dialog_clear();
+ if (!distWanted)
msgConfirm("Please insert next floppy into %s", dev->description);
- }
- else {
- dialog_clear();
+ else
msgConfirm("Please insert floppy containing %s into %s", distWanted, dev->description);
- }
memset(&dosargs, 0, sizeof dosargs);
dosargs.fspec = dev->devname;
@@ -141,7 +134,6 @@ mediaInitFloppy(Device *dev)
if (mount(MOUNT_MSDOS, "/dist", MNT_RDONLY, (caddr_t)&dosargs) == -1) {
if (mount(MOUNT_UFS, "/dist", MNT_RDONLY, (caddr_t)&u_args) == -1) {
- dialog_clear();
msgConfirm("Error mounting floppy %s (%s) on /dist : %s", dev->name, dev->devname, strerror(errno));
return FALSE;
}
@@ -168,7 +160,6 @@ mediaGetFloppy(Device *dev, char *file, Boolean probe)
else {
while (!file_readable(buf)) {
if (!--nretries) {
- dialog_clear();
msgConfirm("GetFloppy: Failed to get %s after retries;\ngiving up.", buf);
return -1;
}
@@ -192,7 +183,6 @@ mediaShutdownFloppy(Device *dev)
else {
floppyMounted = FALSE;
msgDebug("Floppy unmounted successfully.\n");
- dialog_clear();
msgConfirm("You may remove the floppy from %s", dev->description);
}
}
OpenPOWER on IntegriCloud