diff options
author | Bill Nottingham <notting@redhat.com> | 1999-10-25 21:30:32 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-10-25 21:30:32 +0000 |
commit | a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616 (patch) | |
tree | 2396dff09c5836c2dcc93f0a3b72854d7e7ff7c0 /rc.d/init.d | |
parent | 1cdcdf23deae9d776966f60f5a24c5c624cd0073 (diff) | |
download | initscripts-a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616.tar initscripts-a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616.tar.gz initscripts-a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616.tar.bz2 initscripts-a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616.tar.xz initscripts-a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616.zip |
fix console checking with new consoletype program (from jakub)
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-x | rc.d/init.d/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 37b6ced7..18cdceef 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -31,8 +31,8 @@ if [ -z "$BOOTUP" ]; then SETCOLOR_NORMAL="echo -en \\033[0;39m" LOGLEVEL=1 fi - if [ -x /usr/bin/tty ]; then - if [ "`tty`" = "not a tty" ]; then + if [ -x /sbin/consoletype ]; then + if [ "`consoletype`" = "serial" ]; then BOOTUP=serial MOVE_TO_COL= SETCOLOR_SUCCESS= |