On Thu, Dec 14, 2006 at 10:19:49AM +0100, Paweł Gołaszewski wrote:
> On Wed, 13 Dec 2006, Elan Ruusamäe wrote:
> > > > +if [ "$(LC_ALL=C grep "^processor.*:.*[0-9]" /proc/cpuinfo | wc -l)" 
> > > > -lt 2 ]; then +   exit 0
> > > > +fi
> > > Well...
> > >
> > > The test should only check if kernel is SMP. CPU alone can be 
> > > hotpluged and you can start with only one.
> > on the topic, how you check if kernel is smp? matcing smp from `uname 
> > -r` ?

It works only with distro kernels (or ones with
EXTRAVERSION/LOCALVERSION set at compile time).

> Maybe rpm has some uname-provides? Because it should be required for 
> instalation...

uname(release) contains whole `uname -r`, not parts of it. rpm doesn't
have regex or glob matching for version comparison.


-- 
Jakub Bogusz    http://qboosh.pl/
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to