aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-02-27 16:41:10 +0000
committerBill Nottingham <notting@redhat.com>2002-02-27 16:41:10 +0000
commit45f9f50620dd9f371c0dc384e8c0b112489d26ba (patch)
treeade05ef0f428650a030e5b748a93b4df07dfe7ee
parente8a6652d8b8e85477831226d343e322e411fa841 (diff)
downloadinitscripts-45f9f50620dd9f371c0dc384e8c0b112489d26ba.tar
initscripts-45f9f50620dd9f371c0dc384e8c0b112489d26ba.tar.gz
initscripts-45f9f50620dd9f371c0dc384e8c0b112489d26ba.tar.bz2
initscripts-45f9f50620dd9f371c0dc384e8c0b112489d26ba.tar.xz
initscripts-45f9f50620dd9f371c0dc384e8c0b112489d26ba.zip
banner tweaks
-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 e37a1cfb..3f46fdc9 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"