lkml.org 
[lkml]   [1999]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: how to find out SMP kernel is running
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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.043 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site