diff options
author | Bill Nottingham <notting@redhat.com> | 1999-06-17 21:38:05 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-06-17 21:38:05 +0000 |
commit | a5a94f762b8e72693a58e08d383aed4b45170c21 (patch) | |
tree | 4ea3d703ec6966dcef605bce25b7b0031a180539 /rc.d/init.d | |
parent | 63debdd941f246f953cfb877be0ae83b6a8dd12c (diff) | |
download | initscripts-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/init.d')
-rwxr-xr-x | rc.d/init.d/functions | 8 |
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 |