aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-xrc.d/init.d/functions8
1 files changed, 5 insertions, 3 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index ca29b07b..74fd3d05 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -402,7 +402,7 @@ success() {
# Log that something failed
failure() {
- rc=$?
+ local rc=$?
#if [ -z "${IN_INITLOG:-}" ]; then
# initlog $INITLOG_ARGS -n $0 -s "$1" -e 2
#fi
@@ -414,7 +414,7 @@ failure() {
# Log that something passed, but may have had errors. Useful for fsck
passed() {
- rc=$?
+ local rc=$?
#if [ -z "${IN_INITLOG:-}" ]; then
# initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
#fi
@@ -424,7 +424,7 @@ passed() {
# Log a warning
warning() {
- rc=$?
+ local rc=$?
#if [ -z "${IN_INITLOG:-}" ]; then
# initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
#fi
@@ -434,6 +434,8 @@ warning() {
# Run some action. Log its output.
action() {
+ local STRING rc
+
STRING=$1
echo -n "$STRING "
if [ "${RHGB_STARTED:-}" != "" -a -w /etc/rhgb/temp/rhgb-console ]; then