Linux-kernel mailing list archive 1999-34,: Re: how to find out SMP kernel is running

# Re: how to find out SMP kernel is running

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

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Robert M. Hyatt: "Re: "invalid character" problem with SMP and 2.3.3 (and newer)"
- Previous message: Benjamin Herrenschmidt: "Re: Cache incoherencies (WAS: New resources - pls, explain :-( )"

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/

- Next message: Robert M. Hyatt: "Re: "invalid character" problem with SMP and 2.3.3 (and newer)"
- Previous message: Benjamin Herrenschmidt: "Re: Cache incoherencies (WAS: New resources - pls, explain :-( )"