aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/functions13
-rwxr-xr-xrc.d/init.d/halt2
2 files changed, 11 insertions, 4 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
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 08cf9b67..198767c0 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -14,7 +14,7 @@ PATH=/sbin:/bin:/usr/bin:/usr/sbin
. /etc/rc.d/init.d/functions
runcmd() {
- echo -n $1
+ echo -n "$1 "
shift
if [ "$BOOTUP" = "color" ]; then
$* && echo_success || echo_failure