diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-16 15:45:29 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-16 15:45:29 -0400 |
commit | e5a069946a1afcc0cd6048d34dbc0b911cf74aaa (patch) | |
tree | 1ef2fc2cc086ea4a83b13ef29f60e6e11f8a2812 /etc/rc.bootup | |
parent | 553fff8a534a16c1c69d722da0cead6fa6a01ecf (diff) | |
download | pfsense-e5a069946a1afcc0cd6048d34dbc0b911cf74aaa.zip pfsense-e5a069946a1afcc0cd6048d34dbc0b911cf74aaa.tar.gz |
Do not CR and increase stty timeout instead of adding sleep(1)
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-x | etc/rc.bootup | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup index 76042f5..261dbc6 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -38,20 +38,19 @@ function rescue_detect_keypress() { 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 from a \n"; - echo "broken hard disk installation, etc.\n\n"; + echo "Recovery 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 "not wish to boot into the liveCD environment at this time.\n\n"; - echo "Timeout before auto boot continues (seconds): {$timeout}\n"; + echo "Timeout before auto boot continues (seconds): {$timeout}"; $key = null; while(!in_array($key, array("r","R"))) { echo " {$timeout}"; - `/bin/stty -icanon min 0 time 10`; + `/bin/stty -icanon min 0 time 25`; $key = trim(`KEY=\`dd count=1 2>/dev/null\`; echo \$KEY`); `/bin/stty icanon`; // Decrement our timeout value $timeout--; - sleep(1); // If we have reached 0 exit and continue on if ($timeout == 0) break; |