diff options
author | Erik Troan <ewt@redhat.com> | 1998-08-17 15:09:12 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1998-08-17 15:09:12 +0000 |
commit | 469fb3745bcab62dc764a48659b03cf1b915e255 (patch) | |
tree | f589cdfec0f31419e36ddc7aede2abfff24d4177 /rc.d/rc.local | |
parent | 24ba7b4357721590b3ab93ad9fcaf685200f4d48 (diff) | |
download | initscripts-469fb3745bcab62dc764a48659b03cf1b915e255.tar initscripts-469fb3745bcab62dc764a48659b03cf1b915e255.tar.gz initscripts-469fb3745bcab62dc764a48659b03cf1b915e255.tar.bz2 initscripts-469fb3745bcab62dc764a48659b03cf1b915e255.tar.xz initscripts-469fb3745bcab62dc764a48659b03cf1b915e255.zip |
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
Diffstat (limited to 'rc.d/rc.local')
-rwxr-xr-x | rc.d/rc.local | 32 |
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 |