diff options
author | DJ Lucas <dj@linuxfromscratch.org> | 2011-05-14 18:46:00 +0000 |
---|---|---|
committer | DJ Lucas <dj@linuxfromscratch.org> | 2011-05-14 18:46:00 +0000 |
commit | bd1b5bedc2ae793dcfd6cfd85d9e10040e4b5b05 (patch) | |
tree | b80d525547e2e2b6cd47f20c3103e2c7d69d01cb /bootscripts/contrib/lsb-v3/init.d | |
parent | 34a7193e49ec669618f44d247cd3a33bdd0e7069 (diff) |
Added FAILURE_ACTION variable to rc.site
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9526 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'bootscripts/contrib/lsb-v3/init.d')
-rw-r--r-- | bootscripts/contrib/lsb-v3/init.d/checkfs | 6 | ||||
-rw-r--r-- | bootscripts/contrib/lsb-v3/init.d/udev | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bootscripts/contrib/lsb-v3/init.d/checkfs b/bootscripts/contrib/lsb-v3/init.d/checkfs index 4718a49a3..599e2cbc6 100644 --- a/bootscripts/contrib/lsb-v3/init.d/checkfs +++ b/bootscripts/contrib/lsb-v3/init.d/checkfs @@ -35,7 +35,7 @@ case "${1}" in echo -e -n "${FAILURE}After you press Enter, this system will be " echo -e "${FAILURE}halted and powered off.\n" echo -e "${INFO}Press enter to continue...${NORMAL}" - read ENTER + $FAILURE_ACTION /etc/rc.d/init.d/halt stop fi @@ -71,7 +71,7 @@ case "${1}" in echo -e "${WARNING}this system to be rebooted.\n" echo -e "After you press enter, this system will be rebooted.\n" echo -e "${INFO}Press Enter to continue...${NORMAL}" - read ENTER + $FAILURE_ACTION reboot -f elif [ "${error_value}" -gt 3 -a "${error_value}" -lt 16 ]; then log_failure_msg "Checking file systems..." @@ -84,7 +84,7 @@ case "${1}" in echo -e "${FAILURE}After you press Enter, this system will be" echo -e "${FAILURE}halted and powered off.\n" echo -e "${INFO}Press Enter to continue...${NORMAL}" - read ENTER + $FAILURE_ACTION /etc/rc.d/init.d/halt stop elif [ "${error_value}" -ge 16 ]; then log_failure_msg "Checking file systems..." diff --git a/bootscripts/contrib/lsb-v3/init.d/udev b/bootscripts/contrib/lsb-v3/init.d/udev index 0325b3505..ac91fccf3 100644 --- a/bootscripts/contrib/lsb-v3/init.d/udev +++ b/bootscripts/contrib/lsb-v3/init.d/udev @@ -29,7 +29,7 @@ case "${1}" in boot_mesg -n " will be halted and powered off." boot_mesg -n "\n\nPress Enter to continue..." ${INFO} boot_mesg "" ${NORMAL} - read ENTER + $FAILURE_ACTION /etc/rc.d/init.d/halt stop fi @@ -48,7 +48,7 @@ case "${1}" in boot_mesg -n " will be halted and powered off." boot_mesg -n "\n\nPress Enter to continue..." ${INFO} boot_mesg "" ${NORMAL} - read ENTER + $FAILURE_ACTION /etc/rc.d/init.d/halt stop fi |