aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts/contrib/lsb-v3/sysconfig/rc.site
diff options
context:
space:
mode:
Diffstat (limited to 'bootscripts/contrib/lsb-v3/sysconfig/rc.site')
-rw-r--r--bootscripts/contrib/lsb-v3/sysconfig/rc.site7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootscripts/contrib/lsb-v3/sysconfig/rc.site b/bootscripts/contrib/lsb-v3/sysconfig/rc.site
index cf58e2fd7..63ef59096 100644
--- a/bootscripts/contrib/lsb-v3/sysconfig/rc.site
+++ b/bootscripts/contrib/lsb-v3/sysconfig/rc.site
@@ -13,6 +13,10 @@ TEMPFS_MOUNT="${RC_BASE}/init.d/boottemp"
# Bootlogging (requires a tempfs mount)
BOOTLOG_ENAB="yes"
+# Manual input is not appropriate on remote systems. Define what happens when
+# an error is encountered that interupts the boot/shutdown proceess
+FAILURE_ACTION="read ENTER"
+
# Distro Information
DISTRO="Linux From Scratch" # The distro name
DISTRO_CONTACT="lfs-dev@linuxfromscratch.org" # Bug report address
@@ -33,6 +37,7 @@ PREFIX_FAILURE="${FAILURE}***${NORMAL}"
# Export varialbles so that they are inherited by the initscripts
export RC_BASE RC_FUNCTIONS NETWORK_DEVICES TEMPFS_MOUNT BOOTLOG_ENAB
+export FAILURE_ACTION
export DISTRO DISTRO_CONTACT DISTRO_MINI
export BRACKET FAILURE INFO NORMAL SUCCESS WARNING
export PREFIX_SUCCESS PREFIX_WARNING PREFIX_FAILURE
@@ -64,6 +69,6 @@ print_error_msg()
echo -e ""
echo -e "${INFO}Press Enter to continue..."
echo -e "${NORMAL}"
- read ENTER
+ $FAILURE_ACTION
}