summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/system.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-25 18:48:33 +0000
committerjkh <jkh@FreeBSD.org>1995-05-25 18:48:33 +0000
commit74cb22cc5c965773317f3d7b9294973e9c9188c7 (patch)
tree10921c1c39519e3e4c5f7c19031e411a3aba8086 /release/sysinstall/system.c
parentf2fac040f8bbf90a3e67c98a529843da75f2e365 (diff)
downloadFreeBSD-src-74cb22cc5c965773317f3d7b9294973e9c9188c7.zip
FreeBSD-src-74cb22cc5c965773317f3d7b9294973e9c9188c7.tar.gz
Bring in all my fixes to Poul's gripe list as of last night.
Diffstat (limited to 'release/sysinstall/system.c')
-rw-r--r--release/sysinstall/system.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c
index f1d7ab3..6fe565b 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.32 1995/05/24 23:43:59 jkh Exp $
+ * $Id: system.c,v 1.33 1995/05/25 01:52:03 jkh Exp $
*
* Jordan Hubbard
*
@@ -60,7 +60,7 @@ systemInitialize(int argc, char **argv)
close(0); open("/bootcd/dev/console", O_RDWR);
close(1); dup(0);
close(2); dup(0);
- CpioFD = open("/floppies/cpio.flp", O_RDONLY);
+ RootFD = open("/floppies/root.flp", O_RDONLY);
OnCDROM = TRUE;
chroot("/bootcd");
} else {
@@ -85,20 +85,6 @@ systemInitialize(int argc, char **argv)
exit(-1);
}
- /* If we're running as init, stick a shell over on the 4th VTY */
- if (RunningAsInit && !fork()) {
- int i;
-
- for (i = 0; i < 64; i++)
- close(i);
- open("/dev/ttyv3", O_RDWR);
- ioctl(0, TIOCSCTTY, (char *)NULL);
- dup2(0, 1);
- dup2(0, 2);
- execlp("sh", "-sh", 0);
- exit(1);
- }
-
/* XXX - libdialog has particularly bad return value checking */
init_dialog();
/* If we haven't crashed I guess dialog is running ! */
OpenPOWER on IntegriCloud