Re: How to check if kernel sources are installed on a system?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 25/05/06, devmazumdar <[email protected]> wrote:
How does one check the existence of the kernel source RPM (or deb) on
every single distribution?.

How about something like this

if [ -f /lib/modules/`uname -r`/build/Makefile ]
then
 ...
fi

[snip]

provide a stable kernel API, then atleast please make this a requirement.


best regards

Dev Mazumdar
4Front Technologies
http://www.opensound.com

Regards,
Michal

--
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux