On Tue, 24 Aug 1999, diep doan wrote:
>Hi all,
>
>I want to write a script to automatically install modules (put the
>module in /lib/modules/...). How can I find out if the machine is
>running SMP or non-SMP kernel so that my script will copy the
>appropriate module to appropriate place?

How about this:

#!/bin/sh
if [ `grep processor /proc/cpuinfo | wc -l` -gt 1 ]
        then
                echo "SMP kernel"
        else
                echo "non SMP kernel"
fi

  -M@

--
Matthew Hixson - CIO 
FroZenWave Communications 
http://www.frozenwave.com
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to