Skip to content

Commit

Permalink
Remove options ~ and ! from valid keys on cdrom boot menu
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgarga committed Jul 30, 2015
1 parent 996f5a5 commit 5f6af1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/rc.bootup
Expand Up @@ -45,7 +45,7 @@ function rescue_detect_keypress() {
echo "Timeout before auto boot continues (seconds): {$timeout}";
$key = null;
exec("/bin/stty erase " . chr(8));
while (!in_array($key, array("c", "C", "r", "R", "i", "I", "~", "!"))) {
while (!in_array($key, array("c", "C", "r", "R", "i", "I"))) {
echo chr(8) . "{$timeout}";
`/bin/stty -icanon min 0 time 25`;
$key = trim(`KEY=\`dd count=1 2>/dev/null\`; echo \$KEY`);
Expand Down

0 comments on commit 5f6af1c

Please sign in to comment.