|
@@ -35,7 +35,7 @@ case "${1}" in
|
|
echo -e -n "${FAILURE}After you press Enter, this system will be "
|
|
echo -e -n "${FAILURE}After you press Enter, this system will be "
|
|
echo -e "${FAILURE}halted and powered off.\n"
|
|
echo -e "${FAILURE}halted and powered off.\n"
|
|
echo -e "${INFO}Press enter to continue...${NORMAL}"
|
|
echo -e "${INFO}Press enter to continue...${NORMAL}"
|
|
- read ENTER
|
|
|
|
|
|
+ $FAILURE_ACTION
|
|
/etc/rc.d/init.d/halt stop
|
|
/etc/rc.d/init.d/halt stop
|
|
fi
|
|
fi
|
|
|
|
|
|
@@ -71,7 +71,7 @@ case "${1}" in
|
|
echo -e "${WARNING}this system to be rebooted.\n"
|
|
echo -e "${WARNING}this system to be rebooted.\n"
|
|
echo -e "After you press enter, this system will be rebooted.\n"
|
|
echo -e "After you press enter, this system will be rebooted.\n"
|
|
echo -e "${INFO}Press Enter to continue...${NORMAL}"
|
|
echo -e "${INFO}Press Enter to continue...${NORMAL}"
|
|
- read ENTER
|
|
|
|
|
|
+ $FAILURE_ACTION
|
|
reboot -f
|
|
reboot -f
|
|
elif [ "${error_value}" -gt 3 -a "${error_value}" -lt 16 ]; then
|
|
elif [ "${error_value}" -gt 3 -a "${error_value}" -lt 16 ]; then
|
|
log_failure_msg "Checking file systems..."
|
|
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}After you press Enter, this system will be"
|
|
echo -e "${FAILURE}halted and powered off.\n"
|
|
echo -e "${FAILURE}halted and powered off.\n"
|
|
echo -e "${INFO}Press Enter to continue...${NORMAL}"
|
|
echo -e "${INFO}Press Enter to continue...${NORMAL}"
|
|
- read ENTER
|
|
|
|
|
|
+ $FAILURE_ACTION
|
|
/etc/rc.d/init.d/halt stop
|
|
/etc/rc.d/init.d/halt stop
|
|
elif [ "${error_value}" -ge 16 ]; then
|
|
elif [ "${error_value}" -ge 16 ]; then
|
|
log_failure_msg "Checking file systems..."
|
|
log_failure_msg "Checking file systems..."
|