diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-16 21:59:33 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-16 21:59:33 -0400 |
commit | f98d3d65735b308a4c4285eba73c39fc24ced441 (patch) | |
tree | cf5c8674aa85cddc87fb21e953893a27deddf731 /etc/rc.bootup | |
parent | 68235416057c4e2994f07344346d3be6d98c2090 (diff) | |
download | pfsense-f98d3d65735b308a4c4285eba73c39fc24ced441.zip pfsense-f98d3d65735b308a4c4285eba73c39fc24ced441.tar.gz |
Use passthru()
Ace-in-the-hole-from: JimP
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-x | etc/rc.bootup | 6 |
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("!", "~"))) { |