> 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?

        Several people have already replied to you about this, but I wanted to 
quickly clarify something as well.  A couple of people told you you could do 
something like:

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

        I would like to caution you against doing such a thing as it is potentially 
dangerous...  It is possible to have a SMP kernel, but only have one processor 
installed.  This will likely cause problems, so you would be much better off 
to take the advice of the folks who said to use 'uname -a' or to grep in 
/proc/version for "SMP".

        -dath
-- 
________________________________________________________
Daniel Thom                      File Systems Technician
Work:  [EMAIL PROTECTED]          (503) 578-5764
Home:  [EMAIL PROTECTED]
http://www.teleport.com/~dath/  >>>UNDER CONSTRUCTION<<<
--------------------------------------------------------


-
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