diff options
author | Bill Nottingham <notting@redhat.com> | 2001-07-11 01:18:19 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-07-11 01:18:19 +0000 |
commit | 6b6c2559bfe68d433b78a7b35e1e56dfdbb6b332 (patch) | |
tree | 1e34ea42e7441c74ca8d1ca476da2536b98b89cd | |
parent | 28fd2a3cce91b93c5ce98cb82e032b5336e469b2 (diff) | |
download | initscripts-6b6c2559bfe68d433b78a7b35e1e56dfdbb6b332.tar initscripts-6b6c2559bfe68d433b78a7b35e1e56dfdbb6b332.tar.gz initscripts-6b6c2559bfe68d433b78a7b35e1e56dfdbb6b332.tar.bz2 initscripts-6b6c2559bfe68d433b78a7b35e1e56dfdbb6b332.tar.xz initscripts-6b6c2559bfe68d433b78a7b35e1e56dfdbb6b332.zip |
don't muck with /etc/issue on boot
-rwxr-xr-x | rc.d/rc.local | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/rc.d/rc.local b/rc.d/rc.local index a9145ae0..0036e6c5 100755 --- a/rc.d/rc.local +++ b/rc.d/rc.local @@ -4,33 +4,4 @@ # 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) - - arch=$(uname -m) - a="a" - case "_$arch" in - _a*) a="an";; - _i*) a="an";; - esac - - NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat` - if [ "$NUMPROC" -gt "1" ]; then - SMP="$NUMPROC-processor " - if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then - a="an" - else - a="a" - fi - fi - - # 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 $SMP$(uname -m)" >> /etc/issue - - cp -f /etc/issue /etc/issue.net - echo >> /etc/issue -fi touch /var/lock/subsys/local |