From a5a94f762b8e72693a58e08d383aed4b45170c21 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 17 Jun 1999 21:38:05 +0000 Subject: check for the presence of a tty before doing anything rash... --- rc.d/init.d/functions | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.1