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

kernel version checking



I am trying to write a script that will compare the running kernel version against a range and if the value is within the range then the test passes else it fails. For example. Running kernel-2.4.18-3 and the range is 2.4.9-34 to 2.4.18-5. My problem is if I check the rpms, the kernel rpms have no SERIAL value or EPOCH value set in them. Trying to check against straight values is driving me nuts.

Does anyone have any ideas or code fragments in bash to help out?

Lew Newby






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