From 469fb3745bcab62dc764a48659b03cf1b915e255 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Mon, 17 Aug 1998 15:09:12 +0000 Subject: 1) only update /etc/issue if /etc/redhat-release is present 2) use the text of /etc/redhat-releae verbatim; don't add "Red Hat Linux" to the front --- rc.d/rc.local | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'rc.d/rc.local') 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 -- cgit v1.2.1