aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts/contrib/lsb-v3/lib/lsb/init-functions
diff options
context:
space:
mode:
Diffstat (limited to 'bootscripts/contrib/lsb-v3/lib/lsb/init-functions')
-rw-r--r--bootscripts/contrib/lsb-v3/lib/lsb/init-functions14
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
}