summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/system.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-18 09:02:06 +0000
committerjkh <jkh@FreeBSD.org>1995-05-18 09:02:06 +0000
commit15a64508360e151b76abe310c58ac4eeeaee83ea (patch)
tree17c4597a102f39b64dd8bfa5d02904dde31d810b /usr.sbin/sysinstall/system.c
parent0856c15479a94dc9f8b3964a85ef6ebf7348894f (diff)
downloadFreeBSD-src-15a64508360e151b76abe310c58ac4eeeaee83ea.zip
FreeBSD-src-15a64508360e151b76abe310c58ac4eeeaee83ea.tar.gz
1. Primitive bad144 support (I believe an additional command is needed, but
won't know until Poul wakes up again). 2. Make vsystem() put its output on the debugging fd. 3. DTRT with root filesystem placement - now I see how this has to work (thanks, Poul). 4. Many miscellaneous spelling errors fixed and general cleanup.
Diffstat (limited to 'usr.sbin/sysinstall/system.c')
-rw-r--r--usr.sbin/sysinstall/system.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c
index cb620fe..713092f 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.12 1995/05/17 16:16:10 jkh Exp $
+ * $Id: system.c,v 1.13 1995/05/18 02:42:33 jkh Exp $
*
* Jordan Hubbard
*
@@ -286,6 +286,12 @@ vsystem(char *fmt, ...)
case 0: /* child */
(void)sigsetmask(omask);
+ if (DebugFD != -1) {
+ dup2(DebugFD, 0);
+ dup2(DebugFD, 1);
+ dup2(DebugFD, 2);
+ msgInfo("Command output is on debugging screen - type ALT-F2 to see it");
+ }
execl("/stand/sh", "sh", "-c", cmd, (char *)NULL);
i = 127;
}
OpenPOWER on IntegriCloud