Re: how to extract 'uname -r' string from bzImage without booting it ?

From: Vitaly Mayatskikh
Date: Thu Mar 26 2009 - 06:17:28 EST


At Thu, 26 Mar 2009 12:09:38 +0200, Victoria Muntean wrote:

> How can make (or find) a script or utility
> that can extract  'uname -r' string from bzImage without booting it ?

$ strings vmlinuz | grep -P -o \\d\\.\\d\\.\\d{2}
2.6.29

--
wbr, Vitaly
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/