lkml.org 
[lkml]   [2006]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to check if kernel sources are installed on a system?
Hi,

On 25/05/06, devmazumdar <dev@opensound.com> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-25 23:35    [W:0.162 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site