diff options
Diffstat (limited to 'usr.sbin/sysinstall/system.c')
-rw-r--r-- | usr.sbin/sysinstall/system.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c index 65c353a..ac453ea 100644 --- a/usr.sbin/sysinstall/system.c +++ b/usr.sbin/sysinstall/system.c @@ -438,10 +438,10 @@ vsystem(char *fmt, ...) close(1); open("/dev/null", O_WRONLY); dup2(1, 2); } - if (!RunningAsInit) - execl("/bin/sh", "/bin/sh", "-c", cmd, (char *)NULL); - else + if (RunningAsInit) execl("/stand/sh", "/stand/sh", "-c", cmd, (char *)NULL); + else + execl("/bin/sh", "/bin/sh", "-c", cmd, (char *)NULL); exit(1); } else { |