From 96cabc3fa06f36bd18cea475b760fda29a8e569f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 4 May 1999 19:43:20 +0000 Subject: add SMP info to /etc/issue --- rc.d/rc.local | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'rc.d') 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 -- cgit v1.2.1