diff options
author | Bill Nottingham <notting@redhat.com> | 1999-05-04 19:43:20 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-05-04 19:43:20 +0000 |
commit | 96cabc3fa06f36bd18cea475b760fda29a8e569f (patch) | |
tree | 785d892a495bb8e0d08d51b04a29d3a61b86b53d /rc.d | |
parent | 71471207bdc587f38929ce5097b971b497a43b29 (diff) | |
download | initscripts-96cabc3fa06f36bd18cea475b760fda29a8e569f.tar initscripts-96cabc3fa06f36bd18cea475b760fda29a8e569f.tar.gz initscripts-96cabc3fa06f36bd18cea475b760fda29a8e569f.tar.bz2 initscripts-96cabc3fa06f36bd18cea475b760fda29a8e569f.tar.xz initscripts-96cabc3fa06f36bd18cea475b760fda29a8e569f.zip |
add SMP info to /etc/issue
Diffstat (limited to 'rc.d')
-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 |