From dc55fb5e4b99cd1150afe41f7ce50333a773bb6a Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Sat, 14 May 2011 21:00:31 +0000 Subject: Changes per thread starting at http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2011-May/064677.html git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9532 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- bootscripts/contrib/lsb-v3/lib/lsb/init-functions | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'bootscripts/contrib/lsb-v3/lib/lsb') diff --git a/bootscripts/contrib/lsb-v3/lib/lsb/init-functions b/bootscripts/contrib/lsb-v3/lib/lsb/init-functions index d422a5b82..338f3e00b 100644 --- a/bootscripts/contrib/lsb-v3/lib/lsb/init-functions +++ b/bootscripts/contrib/lsb-v3/lib/lsb/init-functions @@ -5,7 +5,7 @@ # Source rc configuration if not inherited from the environment if [ "${RC_BASE}" = "" ]; then - . /etc/sysconfig/rc + . /etc/default/rc fi # Source the distro functions file @@ -449,7 +449,9 @@ log_success_msg() else BTTIMESPEC="$(echo `date -u +"%b %d %T"` `hostname`) " fi - echo "${BTTIMESPEC}bootlog: ${@} Successful" >> "${TEMPFS_MOUNT}/.bootlog" + if [ "${RUNLEVEL}" != "0" -a "${RUNLEVEL}" != "6" ]; then + echo "${BTTIMESPEC}bootlog: ${@} Successful" >> /run/.bootlog + fi fi return 0 } @@ -476,7 +478,9 @@ log_failure_msg() else BTTIMESPEC="$(echo `date -u +"%b %d %T"` `hostname`) " fi - echo "${BTTIMESPEC}bootlog: ${@} Failed!" >> "${TEMPFS_MOUNT}/.bootlog" + if [ "${RUNLEVEL}" != "0" -a "${RUNLEVEL}" != "6" ]; then + echo "${BTTIMESPEC}bootlog: ${@} Failed!" >> /run/.bootlog + fi fi return 0 } @@ -503,7 +507,9 @@ log_warning_msg() else BTTIMESPEC="$(echo `date -u +"%b %d %T"` `hostname`) " fi - echo "${BTTIMESPEC}bootlog: ${@} Warning" >> "${TEMPFS_MOUNT}/.bootlog" + if [ "${RUNLEVEL}" != "0" -a "${RUNLEVEL}" != "6" ]; then + echo "${BTTIMESPEC}bootlog: ${@} Warning" >> /run/.bootlog + fi fi return 0 } -- cgit v1.2.3-54-g00ecf