From: Jan G. <ja...@ai...> - 2012-05-31 08:20:26
|
> > Hello All > > Just ran si_prepareclient and the following error was reported. > > ERROR unsupported kernel-3.0.0.0-12-generic > > Is there an easy solution to this? > > Thanks > > David --- UseYourOwnKernel.pm.orig 2012-05-30 17:05:54.899344781 +0200 +++ UseYourOwnKernel.pm 2012-05-31 09:06:09.331846666 +0200 @@ -460,11 +460,12 @@ # 2.4.19-mantis-2002.11.20 (root@mantis) #6 Tue Nov 19 15:15:43 CST 2002 # 2.6.7-1-686 (dil...@to...) #1 Thu Jul 8 05:36:53 EDT 2004 # 2.6.22.5-31-default (geeko@buildhost) #1 SMP 2007/09/21 22:29:00 UTC + # 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 # my $regex = # | kernel version + build machine # `--------------------------------------- - '(2\.[46]\.\d[^\/]*?) \(.*@.*\) [#]\d+.*' . + '((2\.[46])|(3\.[012])\.\d[^\/]*?) \(.*@.*\) [#]\d+.*' . # # | build date # `--------------------------------------- @@ -739,7 +740,7 @@ # Find the right way to get modules info. my $uname_r = get_uname_r(); my $modinfo_filename; - if ($uname_r =~ /^2\.6/) { + if ($uname_r =~ /(^2\.6)|(^3\.[012])/) { $modinfo_filename = 'modinfo -F filename'; } elsif ($uname_r =~ /^2\.4/) { $modinfo_filename = 'modinfo -n'; |