diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/functions | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index ff261d3f..050135e2 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -32,13 +32,15 @@ if [ -z "$BOOTUP" ]; then SETCOLOR_NORMAL="echo -en \\033[0;39m" LOGLEVEL=1 fi - if [ -x /usr/bin/tty -a "`tty`" = "not a tty" ]; then - BOOTUP=serial - MOVE_TO_COL= - SETCOLOR_SUCCESS= - SETCOLOR_FAILURE= - SETCOLOR_WARNING= - SETCOLOR_NORMAL= + if [ -x /usr/bin/tty ]; then + if [ "`tty`" = "not a tty" ]; then + BOOTUP=serial + MOVE_TO_COL= + SETCOLOR_SUCCESS= + SETCOLOR_FAILURE= + SETCOLOR_WARNING= + SETCOLOR_NORMAL= + fi fi fi |