aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-02-27 17:02:12 +0000
committerBill Nottingham <notting@redhat.com>2002-02-27 17:02:12 +0000
commitea9b1308d1088439f84443c7e6f6ceb3be36bc1e (patch)
treed631d1527902e7835ed63ceae60b5d0efe98ea61
parent4385817618d328be5548c40f39fd627aad8736e0 (diff)
downloadinitscripts-r6-53.tar
initscripts-r6-53.tar.gz
initscripts-r6-53.tar.bz2
initscripts-r6-53.tar.xz
initscripts-r6-53.zip
banner tweaksr6-53
-rwxr-xr-xrc.d/rc.sysinit18
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"