From: Hauke Mehrtens Date: Wed, 15 Jun 2011 21:11:05 +0000 (+0000) Subject: Fix CONFIG_LINUX_ for linux 3.0 X-Git-Tag: reboot~16565 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e04f68fb77365b724435163134890ea4583e28ab;p=openwrt%2Fstaging%2Fpepe2k.git Fix CONFIG_LINUX_ for linux 3.0 Signed-off-by: Jonas Gorski SVN-Revision: 27184 --- diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 138232f435..7208e16a98 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -188,7 +188,11 @@ sub target_name($) { sub kver($) { my $v = shift; $v =~ tr/\./_/; - $v =~ /(\d+_\d+_\d+)(_\d+)?/ and $v = $1; + if (substr($v,0,2) eq "2_") { + $v =~ /(\d+_\d+_\d+)(_\d+)?/ and $v = $1; + } else { + $v =~ /(\d+_\d+)(_\d+)?/ and $v = $1; + } return $v; }