diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-16 01:58:44 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-16 01:58:44 -0400 |
commit | a57983e04fd23ab45c8d023621662220ec57605d (patch) | |
tree | 9eb6e12cf0e114b00b7a79ee6e24ffe49e31577b /etc | |
parent | c2eebe2b3ebb65bd5051e94317386391f7e08029 (diff) | |
download | pfsense-a57983e04fd23ab45c8d023621662220ec57605d.zip pfsense-a57983e04fd23ab45c8d023621662220ec57605d.tar.gz |
Do not backspace for now and sleep (1) second in between while loop
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.bootup | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup index 880193c..997e07b 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -44,12 +44,13 @@ function rescue_detect_keypress() { echo "Timeout before auto boot continues (seconds): {$timeout}\n"; $key = null; while(!in_array($key, array("r","R"))) { - echo "^H{$timeout}"; + echo " {$timeout}"; `/bin/stty -icanon min 0 time 10`; $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; |