summaryrefslogtreecommitdiffstats
path: root/etc/rc.bootup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-16 21:59:33 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-16 21:59:33 -0400
commitf98d3d65735b308a4c4285eba73c39fc24ced441 (patch)
treecf5c8674aa85cddc87fb21e953893a27deddf731 /etc/rc.bootup
parent68235416057c4e2994f07344346d3be6d98c2090 (diff)
downloadpfsense-f98d3d65735b308a4c4285eba73c39fc24ced441.zip
pfsense-f98d3d65735b308a4c4285eba73c39fc24ced441.tar.gz
Use passthru()
Ace-in-the-hole-from: JimP
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-xetc/rc.bootup6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 108acb8..38a26c5 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -59,13 +59,13 @@ function rescue_detect_keypress() {
if (in_array($key, array("r", "R"))) {
putenv("TERM=cons25");
echo "\n\nRecovery mode selected...\n";
- system("/usr/bin/env TERM=cons25 /bin/tcsh -c /scripts/lua_installer_rescue");
+ passthru("/usr/bin/env TERM=cons25 /bin/tcsh -c /scripts/lua_installer_rescue");
} elseif (in_array($key, array("i", "I"))) {
putenv("TERM=cons25");
echo "\n\nInstaller mode selected...\n";
- system("/usr/bin/env TERM=cons25 /bin/tcsh -c /scripts/lua_installer");
+ passthru("/usr/bin/env TERM=cons25 /bin/tcsh -c /scripts/lua_installer");
if(file_exists("/tmp/install_complete")) {
- system("/etc/rc.reboot");
+ passthru("/etc/rc.reboot");
exit;
}
} elseif (in_array($key, array("!", "~"))) {
OpenPOWER on IntegriCloud