aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-07-06 01:34:46 +0000
committerBill Nottingham <notting@redhat.com>1999-07-06 01:34:46 +0000
commit6841c33639377c0ff422607c9139477960374d37 (patch)
tree5daa3e253e7dfc46bebd712dfdf2f0700e7ddfe6 /rc.d/init.d
parentbae1028544150fc0a750c30ac0833b2aa6189294 (diff)
downloadinitscripts-6841c33639377c0ff422607c9139477960374d37.tar
initscripts-6841c33639377c0ff422607c9139477960374d37.tar.gz
initscripts-6841c33639377c0ff422607c9139477960374d37.tar.bz2
initscripts-6841c33639377c0ff422607c9139477960374d37.tar.xz
initscripts-6841c33639377c0ff422607c9139477960374d37.zip
oops, can't short-circuit backtics
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/functions16
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