diff options
-rwxr-xr-x | rc.d/rc.local | 12 |
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 |