aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-06-18 14:27:54 -0400
committerBill Nottingham <notting@redhat.com>2010-06-18 14:27:54 -0400
commit7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7 (patch)
treec9b3c0e2a3920cf6a89bc82e574c0b1359074237
parente306b58fefac7036122af9c97a82407e8e9b70c0 (diff)
downloadinitscripts-7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7.tar
initscripts-7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7.tar.gz
initscripts-7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7.tar.bz2
initscripts-7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7.tar.xz
initscripts-7b2d2b5db67765ff6ac0a1ce94f3ee06665fa2f7.zip
Use /etc/system-release.
-rw-r--r--initscripts.spec2
-rwxr-xr-xrc.d/rc.sysinit12
2 files changed, 7 insertions, 7 deletions
diff --git a/initscripts.spec b/initscripts.spec
index c9f1b3f0..8772685a 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -24,7 +24,7 @@ Requires: upstart >= 0.6.0
Requires: SysVinit >= 2.85-38
%endif
Requires: /sbin/ip, /sbin/arping, net-tools, /bin/find
-Requires: /etc/redhat-release
+Requires: /etc/system-release
Requires: /sbin/runuser
Requires: udev >= 125-1
Requires: cpio
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