aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/init.d/functions8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index d7702197..19a37c45 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -32,6 +32,14 @@ if [ -z "$BOOTUP" ]; then
SETCOLOR_NORMAL="echo -en \\033[0;39m"
LOGLEVEL=1
fi
+ if [ "`tty`" = "not a tty" ]; then
+ BOOTUP=serial
+ MOVE_TO_COL=
+ SETCOLOR_SUCCESS=
+ SETCOLOR_FAILURE=
+ SETCOLOR_WARNING=
+ SETCOLOR_NORMAL=
+ fi
fi
if [ "$BOOTUP" != "verbose" ]; then