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

Re: Detecting change in running kernel version between reboots



Mike (12024-07-21):
> 1) lsmod | grep <driver>
> 
> I conceed that doesn't actually indicate the kernel has changed, just
> that the kernel module is missing.  However, so far, it being missing
> has consistent indicated a kernel change and rebuilding the driver on a
> false positive isn't really an issue

If the module is not loaded even though the kernel did not change, it
still is an issue you need to investigate, is it not? So this is the
version I would recommend.

You can double that with testing if
/lib/modules/$(uname -r)/path/to/the/module.ko exists.

Regards,

-- 
  Nicolas George


Reply to: