diff options
author | DJ Lucas <dj@linuxfromscratch.org> | 2011-05-14 21:00:31 +0000 |
---|---|---|
committer | DJ Lucas <dj@linuxfromscratch.org> | 2011-05-14 21:00:31 +0000 |
commit | dc55fb5e4b99cd1150afe41f7ce50333a773bb6a (patch) | |
tree | 3d49341fb38468a5f6c85b54c08171ced1e96c90 /bootscripts/contrib/lsb-v3/lib | |
parent | b4a678295e56da7be73a847cb460b477a54efc8a (diff) |
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
Diffstat (limited to 'bootscripts/contrib/lsb-v3/lib')
-rw-r--r-- | bootscripts/contrib/lsb-v3/lib/lsb/init-functions | 14 |
1 files changed, 10 insertions, 4 deletions
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 } |