diff options
author | Bill Nottingham <notting@redhat.com> | 2010-06-18 14:27:54 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-06-18 14:27:54 -0400 |
commit | 7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7 (patch) | |
tree | c9b3c0e2a3920cf6a89bc82e574c0b1359074237 /rc.d/rc.sysinit | |
parent | e306b58fefac7036122af9c97a82407e8e9b70c0 (diff) | |
download | initscripts-7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7.tar initscripts-7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7.tar.gz initscripts-7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7.tar.bz2 initscripts-7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7.tar.xz initscripts-7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7.zip |
Use /etc/system-release.
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 55b5b435..25c7503b 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -247,21 +247,21 @@ init_crypto() { # Print a text banner. echo -en $"\t\tWelcome to " -read -r redhat_release < /etc/redhat-release -if [[ "$redhat_release" == *"Red Hat"* ]]; then +read -r system_release < /etc/system-release +if [[ "$system_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) + PRODUCT=$(sed "s/Red Hat \(.*\) release.*/\1/" /etc/system-release) echo " $PRODUCT" -elif [[ "$redhat_release" == *Fedora* ]]; then +elif [[ "$system_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) + PRODUCT=$(sed "s/Fedora \(.*\) \?release.*/\1/" /etc/system-release) echo " $PRODUCT" else - PRODUCT=$(sed "s/ release.*//g" /etc/redhat-release) + PRODUCT=$(sed "s/ release.*//g" /etc/system-release) echo "$PRODUCT" fi if [ "$PROMPT" != "no" ]; then |