summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-05-04 19:43:20 +0000
committerBill Nottingham <notting@redhat.com>1999-05-04 19:43:20 +0000
commit96cabc3fa06f36bd18cea475b760fda29a8e569f (patch)
tree785d892a495bb8e0d08d51b04a29d3a61b86b53d
parent71471207bdc587f38929ce5097b971b497a43b29 (diff)
downloadinitscripts-96cabc3fa06f36bd18cea475b760fda29a8e569f.tar.gz
initscripts-96cabc3fa06f36bd18cea475b760fda29a8e569f.tar.xz
initscripts-96cabc3fa06f36bd18cea475b760fda29a8e569f.zip
add SMP info to /etc/issue
-rwxr-xr-xrc.d/rc.local12
1 files changed, 11 insertions, 1 deletions
diff --git a/rc.d/rc.local b/rc.d/rc.local
index 4aad46c1..1f3bda03 100755
--- a/rc.d/rc.local
+++ b/rc.d/rc.local
@@ -13,12 +13,22 @@ if [ -f /etc/redhat-release ]; then
_a*) a="an";;
_i*) a="an";;
esac
+
+ NUMPROC=$[`cat /proc/cpuinfo | grep ^processor | wc -l`]
+ 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 $(uname -m)" >> /etc/issue
+ echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue
cp -f /etc/issue /etc/issue.net
echo >> /etc/issue