|
@@ -1,8 +1,5 @@
|
|
# Begin /etc/default/rc
|
|
# Begin /etc/default/rc
|
|
|
|
|
|
-# Author: DJ Lucas - dj@linuxfromscratch.org
|
|
|
|
-# Version: 1.0 LSB V.3.1
|
|
|
|
-
|
|
|
|
# Global variable inherited by initscripts are in caps
|
|
# Global variable inherited by initscripts are in caps
|
|
# Local variables for the rc script are in lowercase
|
|
# Local variables for the rc script are in lowercase
|
|
|
|
|
|
@@ -10,7 +7,7 @@
|
|
. /etc/default/rc.site
|
|
. /etc/default/rc.site
|
|
|
|
|
|
# Set base directory information
|
|
# Set base directory information
|
|
-RC_BASE="ETCDIR"
|
|
|
|
|
|
+RC_BASE="/etc/rc.d"
|
|
|
|
|
|
# Location of network device scripts and config files
|
|
# Location of network device scripts and config files
|
|
NETWORK_DEVICES="/etc/network"
|
|
NETWORK_DEVICES="/etc/network"
|
|
@@ -74,6 +71,16 @@ ilen="38" # The total length of the interactive message
|
|
welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}"
|
|
welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}"
|
|
i_message="Press '${FAILURE}I${NORMAL}' to enter interactive startup"
|
|
i_message="Press '${FAILURE}I${NORMAL}' to enter interactive startup"
|
|
|
|
|
|
|
|
+# FAILURE_ACTION (what to do when script failure occurs)
|
|
|
|
+case "${stop_on_error}" in
|
|
|
|
+ Y* | y* | 0)
|
|
|
|
+ FAILURE_ACTION='read Enter'
|
|
|
|
+ ;;
|
|
|
|
+ *)
|
|
|
|
+ FAILURE_ACTION='echo ""'
|
|
|
|
+ ;;
|
|
|
|
+esac
|
|
|
|
+
|
|
# Error message displayed when a script's exit value is not zero
|
|
# Error message displayed when a script's exit value is not zero
|
|
print_error_msg()
|
|
print_error_msg()
|
|
{
|
|
{
|