aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/functions12
1 files changed, 9 insertions, 3 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 68875fdc..5f4e71b6 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -253,7 +253,9 @@ success() {
initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
else
# silly hack to avoid EPIPE killing rc.sysinit
- sh -c "echo \"$INITLOG_ARGS -n $0 -s \\\"$1\\\" -e 1\"" >&21
+ trap SIGPIPE
+ echo "$INITLOG_ARGS -n $0 -s \"$1\" -e 1" >&21
+ trap -
fi
[ "$BOOTUP" != "verbose" ] && echo_success
return 0
@@ -265,7 +267,9 @@ failure() {
if [ -z "$IN_INITLOG" ]; then
initlog $INITLOG_ARGS -n $0 -s "$1" -e 2
else
- sh -c "echo \"$INITLOG_ARGS -n $0 -s \\\"$1\\\" -e 2\"" >&21
+ trap SIGPIPE
+ echo "$INITLOG_ARGS -n $0 -s \"$1\" -e 2" >&21
+ trap -
fi
[ "$BOOTUP" != "verbose" ] && echo_failure
return $rc
@@ -277,7 +281,9 @@ passed() {
if [ -z "$IN_INITLOG" ]; then
initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
else
- sh -c "echo \"$INITLOG_ARGS -n $0 -s \\\"$1\\\" -e 1\"" >&21
+ trap SIGPIPE
+ echo "$INITLOG_ARGS -n $0 -s \"$1\" -e 1" >&21
+ trap -
fi
[ "$BOOTUP" != "verbose" ] && echo_passed
return $rc