diff options
-rw-r--r-- | initscripts.spec | 2 | ||||
-rwxr-xr-x | rc.d/rc.sysinit | 12 |
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 |