aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/init.d/functions7
1 files changed, 4 insertions, 3 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 050135e2..68875fdc 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -252,7 +252,8 @@ success() {
if [ -z "$IN_INITLOG" ]; then
initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
else
- echo "$INITLOG_ARGS -n $0 -s \"$1\" -e 1" >&21
+ # silly hack to avoid EPIPE killing rc.sysinit
+ sh -c "echo \"$INITLOG_ARGS -n $0 -s \\\"$1\\\" -e 1\"" >&21
fi
[ "$BOOTUP" != "verbose" ] && echo_success
return 0
@@ -264,7 +265,7 @@ failure() {
if [ -z "$IN_INITLOG" ]; then
initlog $INITLOG_ARGS -n $0 -s "$1" -e 2
else
- echo "$INITLOG_ARGS -n $0 -s \"$1\" -e 2" >&21
+ sh -c "echo \"$INITLOG_ARGS -n $0 -s \\\"$1\\\" -e 2\"" >&21
fi
[ "$BOOTUP" != "verbose" ] && echo_failure
return $rc
@@ -276,7 +277,7 @@ passed() {
if [ -z "$IN_INITLOG" ]; then
initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
else
- echo "$INITLOG_ARGS -n $0 -s \"$1\" -e 1" >&21
+ sh -c "echo \"$INITLOG_ARGS -n $0 -s \\\"$1\\\" -e 1\"" >&21
fi
[ "$BOOTUP" != "verbose" ] && echo_passed
return $rc