summaryrefslogtreecommitdiff
path: root/make-boot-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make-boot-image.sh')
-rwxr-xr-xmake-boot-image.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/make-boot-image.sh b/make-boot-image.sh
index 943f10a..be002eb 100755
--- a/make-boot-image.sh
+++ b/make-boot-image.sh
@@ -1,6 +1,6 @@
#!/bin/bash -xe
PS4='+ ($LINENO) ' # To ease debugging
-VERSION="1.2-emac-rc2"
+VERSION="1.2-emac-rc3"
# Config #
##########
@@ -462,11 +462,11 @@ eficast_end() {
[ -r /run/eficast_end ] && action=$(cat /run/eficast_end)
case $action in
poweroff) read -t10 -p 'Ctrl+C to have a shell, Enter to skip wait time for poweroff...'
- wait # if beep command is killed from sfx_success, internal speaker can't beep for a long anoying time
+ wait # if beep command is killed from sfx_success, internal speaker can beep for a long anoying time
poweroff
;;
reboot) read -t10 -p 'Ctrl+C to have a shell, Enter to skip wait time for reboot...'
- wait # if beep command is killed from sfx_success, internal speaker can't beep for a long anoying time
+ wait # if beep command is killed from sfx_success, internal speaker can beep for a long anoying time
reboot
;;
*) echo "Dropping a shell (consider putting poweroff or reboot in /run/eficast_end)"
@@ -644,7 +644,8 @@ EOF
add_initrd_script etc/rc.d/rc2-or-rescue <<"EOF"
. /etc/rc.d/funcs # Load helper functions
if [ -f /run/rescue ]
-then rm /run/rescue
+then sleep 1 # reboot command in eficast_end kill all processes and could trigger rescue mode
+ rm /run/rescue
echo_color red black "/etc/rc.d/rc2 dead. Spawning rescue_shell on /dev/tty1 now"
rescue_shell
else touch /run/rescue