diff options
author | DJ Lucas <dj@linuxfromscratch.org> | 2011-05-23 05:07:21 +0000 |
---|---|---|
committer | DJ Lucas <dj@linuxfromscratch.org> | 2011-05-23 05:07:21 +0000 |
commit | f3f65e73a3e8e1b7d925be3ee6b0e40b03252804 (patch) | |
tree | 062eb7b4c317aca93cbedd8fe29ef63d971468ef /lsb-bootscripts/etc/default/rc | |
parent | 90b457477d7909f501615eec5a18efd29944298a (diff) |
Added stop_on_error parameter to rc.site and cleaned up Begin and End lines.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9552 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'lsb-bootscripts/etc/default/rc')
-rw-r--r-- | lsb-bootscripts/etc/default/rc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lsb-bootscripts/etc/default/rc b/lsb-bootscripts/etc/default/rc index 4b756c54f..f821de9c4 100644 --- a/lsb-bootscripts/etc/default/rc +++ b/lsb-bootscripts/etc/default/rc @@ -1,8 +1,5 @@ # 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 # Local variables for the rc script are in lowercase @@ -10,7 +7,7 @@ . /etc/default/rc.site # Set base directory information -RC_BASE="ETCDIR" +RC_BASE="/etc/rc.d" # Location of network device scripts and config files NETWORK_DEVICES="/etc/network" @@ -74,6 +71,16 @@ ilen="38" # The total length of the interactive message welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}" 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 print_error_msg() { |