aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.local
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/rc.local')
-rwxr-xr-xrc.d/rc.local32
1 files changed, 15 insertions, 17 deletions
diff --git a/rc.d/rc.local b/rc.d/rc.local
index 51009563..4aad46c1 100755
--- a/rc.d/rc.local
+++ b/rc.d/rc.local
@@ -5,23 +5,21 @@
# want to do the full Sys V style init stuff.
if [ -f /etc/redhat-release ]; then
- R=$(cat /etc/redhat-release)
-else
- R="release 3.0.3"
-fi
+ R=$(cat /etc/redhat-release)
-arch=$(uname -m)
-a="a"
-case "_$arch" in
- _a*) a="an";;
- _i*) a="an";;
-esac
+ arch=$(uname -m)
+ a="a"
+ case "_$arch" in
+ _a*) a="an";;
+ _i*) a="an";;
+ esac
-# This will overwrite /etc/issue at every boot. So, make any changes you
-# want to make to /etc/issue here or you will lose them when you reboot.
-echo "" > /etc/issue
-echo "Red Hat Linux $R" >> /etc/issue
-echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/issue
+ # This will overwrite /etc/issue at every boot. So, make any changes you
+ # want to make to /etc/issue here or you will lose them when you reboot.
+ echo "" > /etc/issue
+ echo "$R" >> /etc/issue
+ echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/issue
-cp -f /etc/issue /etc/issue.net
-echo >> /etc/issue
+ cp -f /etc/issue /etc/issue.net
+ echo >> /etc/issue
+fi