diff options
-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; |