summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--release/Makefile4
-rw-r--r--release/alpha/boot_crunch.conf8
-rw-r--r--release/amd64/boot_crunch.conf8
-rw-r--r--release/boot_crunch.conf8
-rw-r--r--release/i386/boot_crunch.conf8
-rw-r--r--release/pc98/boot_crunch.conf8
-rw-r--r--release/root_crunch.conf4
-rw-r--r--release/sysinstall/floppy.c4
-rw-r--r--release/sysinstall/install.c7
-rw-r--r--release/sysinstall/label.c10
-rw-r--r--release/sysinstall/msg.c10
-rw-r--r--release/sysinstall/system.c6
-rw-r--r--usr.sbin/sade/install.c7
-rw-r--r--usr.sbin/sade/label.c10
-rw-r--r--usr.sbin/sade/msg.c10
-rw-r--r--usr.sbin/sade/system.c6
-rw-r--r--usr.sbin/sysinstall/floppy.c4
-rw-r--r--usr.sbin/sysinstall/install.c7
-rw-r--r--usr.sbin/sysinstall/label.c10
-rw-r--r--usr.sbin/sysinstall/msg.c10
-rw-r--r--usr.sbin/sysinstall/system.c6
21 files changed, 77 insertions, 78 deletions
diff --git a/release/Makefile b/release/Makefile
index 2e9ffd2..82d4a2c 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.185 1995/05/27 21:07:13 jkh Exp $
+# $Id: Makefile,v 1.186 1995/05/28 07:04:36 phk Exp $
#
# How to roll a release:
#
@@ -37,7 +37,7 @@ FDSIZE= 1200
FDLABEL= fd1200
FDINODE= 4300
-NEWFSARGS= -c 80 -b 4096 -f 512 -i 4300 -m 0 -t 0 -u 0 \
+NEWFSARGS= -c 80 -b 4096 -f 512 -i 4000 -m 0 -t 0 -u 0 \
-o space -T ${FDLABEL}
ZIPNSPLIT= gzip --no-name -9 -c | split -b 240640 -
diff --git a/release/alpha/boot_crunch.conf b/release/alpha/boot_crunch.conf
index 4ef0d39..efd552d 100644
--- a/release/alpha/boot_crunch.conf
+++ b/release/alpha/boot_crunch.conf
@@ -1,16 +1,14 @@
-# $Id: boot_crunch.conf,v 1.16 1995/05/27 11:18:52 jkh Exp $
+# $Id: boot_crunch.conf,v 1.17 1995/05/27 20:49:57 jkh Exp $
srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin
srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/i386
-progs ls cat df sh pwd find
-progs mount mount_cd9660 mount_msdos mount_nfs ping ppp umount
+progs sh find
+progs ping ppp
progs sysinstall newfs gzip cpio bad144 fsck ifconfig route slattach
ln gzip gunzip
ln gzip zcat
ln sh -sh
-# ln sysinstall oinit
-# ln test [
libs -ll -ledit -lutil -lkvm
libs -ldialog -lncurses -lmytinfo -L/usr/src/release/libdisk/obj -ldisk
diff --git a/release/amd64/boot_crunch.conf b/release/amd64/boot_crunch.conf
index 4ef0d39..efd552d 100644
--- a/release/amd64/boot_crunch.conf
+++ b/release/amd64/boot_crunch.conf
@@ -1,16 +1,14 @@
-# $Id: boot_crunch.conf,v 1.16 1995/05/27 11:18:52 jkh Exp $
+# $Id: boot_crunch.conf,v 1.17 1995/05/27 20:49:57 jkh Exp $
srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin
srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/i386
-progs ls cat df sh pwd find
-progs mount mount_cd9660 mount_msdos mount_nfs ping ppp umount
+progs sh find
+progs ping ppp
progs sysinstall newfs gzip cpio bad144 fsck ifconfig route slattach
ln gzip gunzip
ln gzip zcat
ln sh -sh
-# ln sysinstall oinit
-# ln test [
libs -ll -ledit -lutil -lkvm
libs -ldialog -lncurses -lmytinfo -L/usr/src/release/libdisk/obj -ldisk
diff --git a/release/boot_crunch.conf b/release/boot_crunch.conf
index 4ef0d39..efd552d 100644
--- a/release/boot_crunch.conf
+++ b/release/boot_crunch.conf
@@ -1,16 +1,14 @@
-# $Id: boot_crunch.conf,v 1.16 1995/05/27 11:18:52 jkh Exp $
+# $Id: boot_crunch.conf,v 1.17 1995/05/27 20:49:57 jkh Exp $
srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin
srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/i386
-progs ls cat df sh pwd find
-progs mount mount_cd9660 mount_msdos mount_nfs ping ppp umount
+progs sh find
+progs ping ppp
progs sysinstall newfs gzip cpio bad144 fsck ifconfig route slattach
ln gzip gunzip
ln gzip zcat
ln sh -sh
-# ln sysinstall oinit
-# ln test [
libs -ll -ledit -lutil -lkvm
libs -ldialog -lncurses -lmytinfo -L/usr/src/release/libdisk/obj -ldisk
diff --git a/release/i386/boot_crunch.conf b/release/i386/boot_crunch.conf
index 4ef0d39..efd552d 100644
--- a/release/i386/boot_crunch.conf
+++ b/release/i386/boot_crunch.conf
@@ -1,16 +1,14 @@
-# $Id: boot_crunch.conf,v 1.16 1995/05/27 11:18:52 jkh Exp $
+# $Id: boot_crunch.conf,v 1.17 1995/05/27 20:49:57 jkh Exp $
srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin
srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/i386
-progs ls cat df sh pwd find
-progs mount mount_cd9660 mount_msdos mount_nfs ping ppp umount
+progs sh find
+progs ping ppp
progs sysinstall newfs gzip cpio bad144 fsck ifconfig route slattach
ln gzip gunzip
ln gzip zcat
ln sh -sh
-# ln sysinstall oinit
-# ln test [
libs -ll -ledit -lutil -lkvm
libs -ldialog -lncurses -lmytinfo -L/usr/src/release/libdisk/obj -ldisk
diff --git a/release/pc98/boot_crunch.conf b/release/pc98/boot_crunch.conf
index 4ef0d39..efd552d 100644
--- a/release/pc98/boot_crunch.conf
+++ b/release/pc98/boot_crunch.conf
@@ -1,16 +1,14 @@
-# $Id: boot_crunch.conf,v 1.16 1995/05/27 11:18:52 jkh Exp $
+# $Id: boot_crunch.conf,v 1.17 1995/05/27 20:49:57 jkh Exp $
srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin
srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/i386
-progs ls cat df sh pwd find
-progs mount mount_cd9660 mount_msdos mount_nfs ping ppp umount
+progs sh find
+progs ping ppp
progs sysinstall newfs gzip cpio bad144 fsck ifconfig route slattach
ln gzip gunzip
ln gzip zcat
ln sh -sh
-# ln sysinstall oinit
-# ln test [
libs -ll -ledit -lutil -lkvm
libs -ldialog -lncurses -lmytinfo -L/usr/src/release/libdisk/obj -ldisk
diff --git a/release/root_crunch.conf b/release/root_crunch.conf
index f1d8d8b..2dfcdbf 100644
--- a/release/root_crunch.conf
+++ b/release/root_crunch.conf
@@ -1,4 +1,4 @@
-# $Id: root_crunch.conf,v 1.2 1995/05/26 21:15:50 jkh Exp $
+# $Id: root_crunch.conf,v 1.3 1995/05/27 20:49:59 jkh Exp $
# first, we list the source dirs that our programs reside in. These are
# searched in order listed to find the dir containing each program.
@@ -13,7 +13,7 @@ srcdirs /usr/src/usr.sbin
# /bin stuff
-progs chmod cksum cp date dd echo ed expr grep hostname kill ln
+progs ls cat df pwd chmod cksum cp date dd echo ed expr grep hostname kill ln
progs mkdir mt mv pwd rcp rm rmdir sleep stty sync test ft
ln test [
diff --git a/release/sysinstall/floppy.c b/release/sysinstall/floppy.c
index 1f97bc7..229b630 100644
--- a/release/sysinstall/floppy.c
+++ b/release/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.2 1995/05/27 23:39:29 phk Exp $
+ * $Id: floppy.c,v 1.3 1995/05/28 03:04:56 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -150,7 +150,7 @@ void
mediaShutdownFloppy(Device *dev)
{
if (floppyMounted) {
- if (vsystem("umount /mnt") != 0)
+ if (unmount("/mnt", 0) != 0)
msgDebug("Umount of floppy on /mnt failed: %s (%d)\n", strerror(errno), errno);
else {
floppyMounted = FALSE;
diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c
index b0d276a..6f94a83 100644
--- a/release/sysinstall/install.c
+++ b/release/sysinstall/install.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.64 1995/05/28 20:28:13 jkh Exp $
+ * $Id: install.c,v 1.65 1995/05/28 23:12:05 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -200,6 +200,7 @@ installInitial(void)
msgDebug("Sticking a potentially helpful shell over on the 4th screen\n");
if (!fork()) {
int i, fd;
+ extern int login_tty(int);
for (i = 0; i < 64; i++)
close(i);
@@ -207,6 +208,10 @@ installInitial(void)
ioctl(0, TIOCSCTTY, &fd);
dup2(0, 1);
dup2(0, 2);
+ if (login_tty(fd)==-1) {
+ msgConfirm("Can't set controlling terminal");
+ exit(1);
+ }
execlp("sh", "-sh", 0);
exit(1);
}
diff --git a/release/sysinstall/label.c b/release/sysinstall/label.c
index a124cea..6e7f8e5 100644
--- a/release/sysinstall/label.c
+++ b/release/sysinstall/label.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: label.c,v 1.28 1995/05/28 20:28:15 jkh Exp $
+ * $Id: label.c,v 1.29 1995/05/28 23:12:06 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -348,11 +348,9 @@ print_label_chunks(void)
}
memcpy(onestr + PART_PART_COL, label_chunk_info[i].c->name, strlen(label_chunk_info[i].c->name));
/* If it's a filesystem, display the mountpoint */
- if (label_chunk_info[i].type == PART_FILESYSTEM || label_chunk_info[i].type == PART_FAT) {
- if (label_chunk_info[i].c->private != NULL)
- mountpoint = ((PartInfo *)label_chunk_info[i].c->private)->mountpoint;
- else
- mountpoint = " ";
+ if (label_chunk_info[i].c->private
+ && (label_chunk_info[i].type == PART_FILESYSTEM || label_chunk_info[i].type == PART_FAT)) {
+ mountpoint = ((PartInfo *)label_chunk_info[i].c->private)->mountpoint;
if (label_chunk_info[i].type == PART_FAT)
newfs = "DOS";
else
diff --git a/release/sysinstall/msg.c b/release/sysinstall/msg.c
index a90c50f..3459e7e 100644
--- a/release/sysinstall/msg.c
+++ b/release/sysinstall/msg.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: msg.c,v 1.23 1995/05/23 02:41:15 jkh Exp $
+ * $Id: msg.c,v 1.24 1995/05/24 09:00:56 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -43,6 +43,8 @@
#include "sysinstall.h"
#include <stdarg.h>
+#include <sys/ioctl.h>
+#include <machine/console.h>
#define VTY_STATLINE 24
#define TTY_STATLINE 23
@@ -205,7 +207,7 @@ msgConfirm(char *fmt, ...)
use_helpfile(NULL);
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User confirmation requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
dialog_notify(errstr);
@@ -251,7 +253,7 @@ msgYesNo(char *fmt, ...)
use_helpfile(NULL);
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User decision requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1);
@@ -284,7 +286,7 @@ msgGetInput(char *buf, char *fmt, ...)
input_buffer[0] = '\0';
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User input requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
rval = dialog_inputbox("Value Required", errstr, -1, -1, input_buffer);
diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c
index 11058f6..3c25cc3 100644
--- a/release/sysinstall/system.c
+++ b/release/sysinstall/system.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: system.c,v 1.38 1995/05/26 21:00:43 jkh Exp $
+ * $Id: system.c,v 1.39 1995/05/28 09:36:06 jkh Exp $
*
* Jordan Hubbard
*
@@ -105,9 +105,7 @@ systemShutdown(void)
int fd, on = 1;
/* Put the console back */
- fd = open("/dev/ttyv0", O_RDONLY);
- if (fd != -1)
- ioctl(fd, TIOCCONS, &on);
+ ioctl(0, VT_RELDISP, 1);
reboot(RB_HALT);
}
else
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index b0d276a..6f94a83 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.64 1995/05/28 20:28:13 jkh Exp $
+ * $Id: install.c,v 1.65 1995/05/28 23:12:05 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -200,6 +200,7 @@ installInitial(void)
msgDebug("Sticking a potentially helpful shell over on the 4th screen\n");
if (!fork()) {
int i, fd;
+ extern int login_tty(int);
for (i = 0; i < 64; i++)
close(i);
@@ -207,6 +208,10 @@ installInitial(void)
ioctl(0, TIOCSCTTY, &fd);
dup2(0, 1);
dup2(0, 2);
+ if (login_tty(fd)==-1) {
+ msgConfirm("Can't set controlling terminal");
+ exit(1);
+ }
execlp("sh", "-sh", 0);
exit(1);
}
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c
index a124cea..6e7f8e5 100644
--- a/usr.sbin/sade/label.c
+++ b/usr.sbin/sade/label.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: label.c,v 1.28 1995/05/28 20:28:15 jkh Exp $
+ * $Id: label.c,v 1.29 1995/05/28 23:12:06 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -348,11 +348,9 @@ print_label_chunks(void)
}
memcpy(onestr + PART_PART_COL, label_chunk_info[i].c->name, strlen(label_chunk_info[i].c->name));
/* If it's a filesystem, display the mountpoint */
- if (label_chunk_info[i].type == PART_FILESYSTEM || label_chunk_info[i].type == PART_FAT) {
- if (label_chunk_info[i].c->private != NULL)
- mountpoint = ((PartInfo *)label_chunk_info[i].c->private)->mountpoint;
- else
- mountpoint = " ";
+ if (label_chunk_info[i].c->private
+ && (label_chunk_info[i].type == PART_FILESYSTEM || label_chunk_info[i].type == PART_FAT)) {
+ mountpoint = ((PartInfo *)label_chunk_info[i].c->private)->mountpoint;
if (label_chunk_info[i].type == PART_FAT)
newfs = "DOS";
else
diff --git a/usr.sbin/sade/msg.c b/usr.sbin/sade/msg.c
index a90c50f..3459e7e 100644
--- a/usr.sbin/sade/msg.c
+++ b/usr.sbin/sade/msg.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: msg.c,v 1.23 1995/05/23 02:41:15 jkh Exp $
+ * $Id: msg.c,v 1.24 1995/05/24 09:00:56 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -43,6 +43,8 @@
#include "sysinstall.h"
#include <stdarg.h>
+#include <sys/ioctl.h>
+#include <machine/console.h>
#define VTY_STATLINE 24
#define TTY_STATLINE 23
@@ -205,7 +207,7 @@ msgConfirm(char *fmt, ...)
use_helpfile(NULL);
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User confirmation requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
dialog_notify(errstr);
@@ -251,7 +253,7 @@ msgYesNo(char *fmt, ...)
use_helpfile(NULL);
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User decision requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1);
@@ -284,7 +286,7 @@ msgGetInput(char *buf, char *fmt, ...)
input_buffer[0] = '\0';
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User input requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
rval = dialog_inputbox("Value Required", errstr, -1, -1, input_buffer);
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c
index 11058f6..3c25cc3 100644
--- a/usr.sbin/sade/system.c
+++ b/usr.sbin/sade/system.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: system.c,v 1.38 1995/05/26 21:00:43 jkh Exp $
+ * $Id: system.c,v 1.39 1995/05/28 09:36:06 jkh Exp $
*
* Jordan Hubbard
*
@@ -105,9 +105,7 @@ systemShutdown(void)
int fd, on = 1;
/* Put the console back */
- fd = open("/dev/ttyv0", O_RDONLY);
- if (fd != -1)
- ioctl(fd, TIOCCONS, &on);
+ ioctl(0, VT_RELDISP, 1);
reboot(RB_HALT);
}
else
diff --git a/usr.sbin/sysinstall/floppy.c b/usr.sbin/sysinstall/floppy.c
index 1f97bc7..229b630 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.2 1995/05/27 23:39:29 phk Exp $
+ * $Id: floppy.c,v 1.3 1995/05/28 03:04:56 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -150,7 +150,7 @@ void
mediaShutdownFloppy(Device *dev)
{
if (floppyMounted) {
- if (vsystem("umount /mnt") != 0)
+ if (unmount("/mnt", 0) != 0)
msgDebug("Umount of floppy on /mnt failed: %s (%d)\n", strerror(errno), errno);
else {
floppyMounted = FALSE;
diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c
index b0d276a..6f94a83 100644
--- a/usr.sbin/sysinstall/install.c
+++ b/usr.sbin/sysinstall/install.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.64 1995/05/28 20:28:13 jkh Exp $
+ * $Id: install.c,v 1.65 1995/05/28 23:12:05 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -200,6 +200,7 @@ installInitial(void)
msgDebug("Sticking a potentially helpful shell over on the 4th screen\n");
if (!fork()) {
int i, fd;
+ extern int login_tty(int);
for (i = 0; i < 64; i++)
close(i);
@@ -207,6 +208,10 @@ installInitial(void)
ioctl(0, TIOCSCTTY, &fd);
dup2(0, 1);
dup2(0, 2);
+ if (login_tty(fd)==-1) {
+ msgConfirm("Can't set controlling terminal");
+ exit(1);
+ }
execlp("sh", "-sh", 0);
exit(1);
}
diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c
index a124cea..6e7f8e5 100644
--- a/usr.sbin/sysinstall/label.c
+++ b/usr.sbin/sysinstall/label.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: label.c,v 1.28 1995/05/28 20:28:15 jkh Exp $
+ * $Id: label.c,v 1.29 1995/05/28 23:12:06 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -348,11 +348,9 @@ print_label_chunks(void)
}
memcpy(onestr + PART_PART_COL, label_chunk_info[i].c->name, strlen(label_chunk_info[i].c->name));
/* If it's a filesystem, display the mountpoint */
- if (label_chunk_info[i].type == PART_FILESYSTEM || label_chunk_info[i].type == PART_FAT) {
- if (label_chunk_info[i].c->private != NULL)
- mountpoint = ((PartInfo *)label_chunk_info[i].c->private)->mountpoint;
- else
- mountpoint = " ";
+ if (label_chunk_info[i].c->private
+ && (label_chunk_info[i].type == PART_FILESYSTEM || label_chunk_info[i].type == PART_FAT)) {
+ mountpoint = ((PartInfo *)label_chunk_info[i].c->private)->mountpoint;
if (label_chunk_info[i].type == PART_FAT)
newfs = "DOS";
else
diff --git a/usr.sbin/sysinstall/msg.c b/usr.sbin/sysinstall/msg.c
index a90c50f..3459e7e 100644
--- a/usr.sbin/sysinstall/msg.c
+++ b/usr.sbin/sysinstall/msg.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: msg.c,v 1.23 1995/05/23 02:41:15 jkh Exp $
+ * $Id: msg.c,v 1.24 1995/05/24 09:00:56 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -43,6 +43,8 @@
#include "sysinstall.h"
#include <stdarg.h>
+#include <sys/ioctl.h>
+#include <machine/console.h>
#define VTY_STATLINE 24
#define TTY_STATLINE 23
@@ -205,7 +207,7 @@ msgConfirm(char *fmt, ...)
use_helpfile(NULL);
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User confirmation requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
dialog_notify(errstr);
@@ -251,7 +253,7 @@ msgYesNo(char *fmt, ...)
use_helpfile(NULL);
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User decision requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1);
@@ -284,7 +286,7 @@ msgGetInput(char *buf, char *fmt, ...)
input_buffer[0] = '\0';
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User input requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
rval = dialog_inputbox("Value Required", errstr, -1, -1, input_buffer);
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c
index 11058f6..3c25cc3 100644
--- a/usr.sbin/sysinstall/system.c
+++ b/usr.sbin/sysinstall/system.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: system.c,v 1.38 1995/05/26 21:00:43 jkh Exp $
+ * $Id: system.c,v 1.39 1995/05/28 09:36:06 jkh Exp $
*
* Jordan Hubbard
*
@@ -105,9 +105,7 @@ systemShutdown(void)
int fd, on = 1;
/* Put the console back */
- fd = open("/dev/ttyv0", O_RDONLY);
- if (fd != -1)
- ioctl(fd, TIOCCONS, &on);
+ ioctl(0, VT_RELDISP, 1);
reboot(RB_HALT);
}
else
OpenPOWER on IntegriCloud