aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-06-17 21:38:05 +0000
committerBill Nottingham <notting@redhat.com>1999-06-17 21:38:05 +0000
commita5a94f762b8e72693a58e08d383aed4b45170c21 (patch)
tree4ea3d703ec6966dcef605bce25b7b0031a180539 /rc.d
parent63debdd941f246f953cfb877be0ae83b6a8dd12c (diff)
downloadinitscripts-a5a94f762b8e72693a58e08d383aed4b45170c21.tar
initscripts-a5a94f762b8e72693a58e08d383aed4b45170c21.tar.gz
initscripts-a5a94f762b8e72693a58e08d383aed4b45170c21.tar.bz2
initscripts-a5a94f762b8e72693a58e08d383aed4b45170c21.tar.xz
initscripts-a5a94f762b8e72693a58e08d383aed4b45170c21.zip
check for the presence of a tty before doing anything rash...
Diffstat (limited to 'rc.d')
-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