Re: how to find out SMP kernel is running

Rui Sousa (rsousa@grad.physics.sunysb.edu)
Tue, 24 Aug 1999 13:55:54 -0400


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

#!/bin/bash

if [ -n "`uname -a|grep SMP`" ]; then

#copy smp modules

else

#copy up modules

fi

Rui Sousa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/