diff options
author | Erik Troan <ewt@redhat.com> | 1997-09-16 14:12:05 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1997-09-16 14:12:05 +0000 |
commit | ced9dffda28f1ec2b060f3e419cf3c6b964b03a1 (patch) | |
tree | da3f56c24861ddc77e2910291c71adc12dca136b /rc.d/rc.local | |
download | initscripts-ced9dffda28f1ec2b060f3e419cf3c6b964b03a1.tar initscripts-ced9dffda28f1ec2b060f3e419cf3c6b964b03a1.tar.gz initscripts-ced9dffda28f1ec2b060f3e419cf3c6b964b03a1.tar.bz2 initscripts-ced9dffda28f1ec2b060f3e419cf3c6b964b03a1.tar.xz initscripts-ced9dffda28f1ec2b060f3e419cf3c6b964b03a1.zip |
Initial revision
Diffstat (limited to 'rc.d/rc.local')
-rwxr-xr-x | rc.d/rc.local | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/rc.d/rc.local b/rc.d/rc.local new file mode 100755 index 00000000..51009563 --- /dev/null +++ b/rc.d/rc.local @@ -0,0 +1,27 @@ +#!/bin/sh + +# This script will be executed *after* all the other init scripts. +# You can put your own initialization stuff in here if you don't +# 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 + +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 + +cp -f /etc/issue /etc/issue.net +echo >> /etc/issue |