diff options
Diffstat (limited to 'build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686')
-rw-r--r-- | build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/etc/rc.d/functions.d/larch-hooks | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/etc/rc.d/functions.d/larch-hooks b/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/etc/rc.d/functions.d/larch-hooks index b43b5c5..1fa97d7 100644 --- a/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/etc/rc.d/functions.d/larch-hooks +++ b/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/etc/rc.d/functions.d/larch-hooks @@ -81,10 +81,15 @@ doeject () # echo "It's safe to switch the computer off now" # echo -ne "Press Enter to continue" # read junk - for i in 10 9 8 7 6 5 4 3 2 1 + for i in 10 9 8 7 6 5 4 3 2 1 do - sleep 1 - printf "\r%02d" $i - done - eject -t $1 + read -t 1 -p "press any key to continue ($i): " + if [ $? = 0 ] + then + break + fi + printf "\r" + done + + eject -t $1 } |