diff options
author | jkh <jkh@FreeBSD.org> | 1995-05-11 09:01:35 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-05-11 09:01:35 +0000 |
commit | fa40b84c6891ea95a81f8f52281767a1d2234727 (patch) | |
tree | 34e503af0f691568eeb519cf19b98c83a928ee24 /release/sysinstall/command.c | |
parent | d947064fab14fc8ff9fb73ca22ff12dd7ddd5d4d (diff) | |
download | FreeBSD-src-fa40b84c6891ea95a81f8f52281767a1d2234727.zip FreeBSD-src-fa40b84c6891ea95a81f8f52281767a1d2234727.tar.gz |
1. Don't check CHUNK_BSD_COMPAT for now; it always returns "no" and is
getting in the way of testing right now.
2. Call system() on commands, not vsystem(). No need for vsystem() here.
3. Add a path for the shell.
Diffstat (limited to 'release/sysinstall/command.c')
-rw-r--r-- | release/sysinstall/command.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/sysinstall/command.c b/release/sysinstall/command.c index 37b3a7a..a143be0 100644 --- a/release/sysinstall/command.c +++ b/release/sysinstall/command.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.10 1995/05/07 23:37:33 jkh Exp $ + * $Id: command.c,v 1.1 1995/05/08 06:08:27 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -113,12 +113,14 @@ command_sort(void) void command_execute(void) { - int i, j; + int i, j, ret; for (i = 0; i < numCommands; i++) { for (j = 0; j < commandStack[i]->ncmds; j++) { msgNotify("Executing command: %s", commandStack[i]->cmds[j]); - (void)vsystem(commandStack[i]->cmds[j]); + ret = system(commandStack[i]->cmds[j]); + msgDebug("Command: %s returns status %d\n", + commandStack[i]->cmds[j], ret); } } } |