aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-02-03 04:40:29 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-02-03 04:40:29 +0000
commitc55b2e598242eb05229b7a702504518ffa101af6 (patch)
tree8a42d2463d55d63f72d80341231a66682893373d /rc.d/rc.sysinit
parent00d01b32191fcf93ebfc4015915b598b957ee17a (diff)
downloadinitscripts-c55b2e598242eb05229b7a702504518ffa101af6.tar
initscripts-c55b2e598242eb05229b7a702504518ffa101af6.tar.gz
initscripts-c55b2e598242eb05229b7a702504518ffa101af6.tar.bz2
initscripts-c55b2e598242eb05229b7a702504518ffa101af6.tar.xz
initscripts-c55b2e598242eb05229b7a702504518ffa101af6.zip
Make "Fedora" blue in the welcome message (#147093, patch by Ville Skyttä
<ville.skytta@iki.fi>). Remove two grep invocations.
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit7
1 files changed, 4 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 42726893..0dcf133e 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -77,14 +77,15 @@ fi
# Print a text banner.
echo -en $"\t\tWelcome to "
-if LC_ALL=C fgrep -q "Red Hat" /etc/redhat-release ; then
+read -r redhat_release < /etc/redhat-release
+if [[ "$redhat_release" =~ "Red Hat" ]]; then
[ "$BOOTUP" = "color" ] && echo -en "\\033[0;31m"
echo -en "Red Hat"
[ "$BOOTUP" = "color" ] && echo -en "\\033[0;39m"
PRODUCT=`sed "s/Red Hat \(.*\) release.*/\1/" /etc/redhat-release`
echo " $PRODUCT"
-elif LC_ALL=C fgrep -q "Fedora" /etc/redhat-release ; then
- [ "$BOOTUP" = "color" ] && echo -en "\\033[0;31m"
+elif [[ "$redhat_release" =~ "Fedora" ]]; then
+ [ "$BOOTUP" = "color" ] && echo -en "\\033[0;34m"
echo -en "Fedora"
[ "$BOOTUP" = "color" ] && echo -en "\\033[0;39m"
PRODUCT=`sed "s/Fedora \(.*\) release.*/\1/" /etc/redhat-release`