diff options
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-x | rc.d/init.d/functions | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 882748f7..95f970fd 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -212,7 +212,8 @@ action() { if [ -z "$IN_INITLOG" ]; then initlog $INITLOG_ARGS -c "$*" && success "$STRING" || failure "$STRING" rc=$? - [ "$BOOTUP" = "color" ] && echo +# [ "$BOOTUP" = "color" ] && echo + echo return $rc else # This sucks. @@ -225,10 +226,16 @@ action() { fi if [ $rc ]; then - [ "$BOOTUP" = "color" ] || { echo ; echo $output ; } + [ "$BOOTUP" != "color" ] && { + if [ -n "$output" ]; then + echo + echo $output + else + echo + fi + } success "$STRING" else - echo echo $output failure "$STRING" fi |