diff options
author | Bill Nottingham <notting@redhat.com> | 2002-02-27 17:02:12 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-02-27 17:02:12 +0000 |
commit | ea9b1308d1088439f84443c7e6f6ceb3be36bc1e (patch) | |
tree | d631d1527902e7835ed63ceae60b5d0efe98ea61 /rc.d | |
parent | 4385817618d328be5548c40f39fd627aad8736e0 (diff) | |
download | initscripts-ea9b1308d1088439f84443c7e6f6ceb3be36bc1e.tar initscripts-ea9b1308d1088439f84443c7e6f6ceb3be36bc1e.tar.gz initscripts-ea9b1308d1088439f84443c7e6f6ceb3be36bc1e.tar.bz2 initscripts-ea9b1308d1088439f84443c7e6f6ceb3be36bc1e.tar.xz initscripts-ea9b1308d1088439f84443c7e6f6ceb3be36bc1e.zip |
banner tweaksr6-53
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 80921540..48300a82 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -34,11 +34,17 @@ fi . /etc/init.d/functions # Print a banner. ;) -echo -en $"\t\t\tWelcome to " -[ "$BOOTUP" != "serial" ] && echo -en $"\\033[1;31m" -echo -en $"Red Hat" -[ "$BOOTUP" != "serial" ] && echo -en $"\\033[0;39m" -echo $" Linux" +echo -en $"\t\tWelcome to " +if grep -q "Red Hat" /etc/redhat-release ; then + [ "$BOOTUP" = "color" ] && echo -en $"\\033[1;31m" + echo -en "Red Hat" + [ "$BOOTUP" = "color" ] && echo -en $"\\033[0;39m" + PRODUCT=`sed "s/Red Hat \(.*\) release.*/\1/" /etc/redhat-release` + echo " $PRODUCT" +else + PRODUCT=`sed "s/ release.*//g" /etc/redhat-release` + echo "$PRODUCT" +fi if [ "$PROMPT" != "no" ]; then echo -en $"\t\tPress 'I' to enter interactive startup." echo @@ -239,7 +245,7 @@ elif [ -f /.autofsck ]; then fsckoptions="$AUTOFSCK_OPT $fsckoptions" fi -if [ "$BOOTUP" != "serial" ]; then +if [ "$BOOTUP" = "color" ]; then fsckoptions="-C $fsckoptions" else fsckoptions="-V $fsckoptions" |