diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-18 21:39:13 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-18 21:39:13 -0400 |
commit | 1e4e84589053d9162ae445e1f06091faf67f9c6d (patch) | |
tree | 49e99e123aace81c56c87e8ff1f5719e97edbe07 /etc | |
parent | 01cdef6c0b2c0657a47cdc111336f45182b9e942 (diff) | |
download | pfsense-1e4e84589053d9162ae445e1f06091faf67f9c6d.zip pfsense-1e4e84589053d9162ae445e1f06091faf67f9c6d.tar.gz |
Increase timeout to 9. Add chr(8) backspace mojo
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.bootup | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup index 73fecfe..0d46fb8 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -34,18 +34,19 @@ function rescue_detect_keypress() { // How long do you want the script to wait before moving on (in seconds) - $timeout=4; + $timeout=9; echo "\n"; echo "[ Press R to enter recovery mode or ]\n"; echo "[ press I to launch the installer ]\n\n"; - echo "Recovery mode can assist by rescuing config.xml\n"; + echo "(R)ecovery mode can assist by rescuing config.xml\n"; echo "from a broken hard disk installation, etc.\n\n"; - echo "Alternatively the installer may be invoked now if you do \n"; + echo "Alternatively the (I)nstaller may be invoked now if you do \n"; echo "not wish to boot into the liveCD environment at this time.\n\n"; - echo "Timeout before auto boot continues (seconds): "; + echo "Timeout before auto boot continues (seconds): {$timeout}"; $key = null; + exec("/bin/stty erase " . chr(8)); while(!in_array($key, array("r","R", "i", "I", "~", "!"))) { - echo " {$timeout}"; + echo chr(8) . "{$timeout}"; `/bin/stty -icanon min 0 time 25`; $key = trim(`KEY=\`dd count=1 2>/dev/null\`; echo \$KEY`); `/bin/stty icanon`; |