On Wednesday 12 January 2005 17:46, Alexander Dalloz wrote: > Am Mi, den 12.01.2005 schrieb Chadley Wilson um 16:19: > > When you install Fedora 2 or 3 it detects which CPU and then loads either > > the smp or normal kernel for you. when it loads the smp it stills give > > the normal as an option in grub. > > My script simply says something like this ( IIRC don't have it with me! ) > > : > > > > uname -a |grep smp > > if [$? -eq 0 ] then > > rpm -ivh kernel-smp.*.rpm > > rpm -ivh kernel-smp.*.src > > > > you get the picture I hope ;) > > > > Today my script bites the dust as it installed a std kernel when it > > should have installed the smp. > > I can easily fix this. Thats not the issue. > > > > How can check if the cpu is an smp and add some test to my script. This > > way even if the Fedora gets it wrong my script will fix it when applying > > all my atches and upgrading the kernels. > > grep "cpu1" /proc/stat > > Test this. If at least cpu1 appears there, then you have an SMP system. > This is more reliable than to check whether an SMP kernel is running. > > > Chadley Wilson > > Alexander Thanks Alexander I will try your suggestion but in the morning, I will add it to my script so long. Question though, will that not reflect results based on the current running kernel? (should it be a non smp kernel) -- Chadley Wilson Redhat Certified Technician Cert Number: 603004708291270 Pinnacle Micro Manufacturers of Proline Computers ==================================== Exercise freedom, Use LINUX =====================================