From b8d7ecc7aebee46add130a6aad0fcfcd41cee4f1 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 5 Mar 2016 18:45:32 +0100 Subject: upgrade_kernel: support for additional version info --- upgrade_kernel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'upgrade_kernel') diff --git a/upgrade_kernel b/upgrade_kernel index ac46050..029cd86 100755 --- a/upgrade_kernel +++ b/upgrade_kernel @@ -1,7 +1,7 @@ #!/bin/sh if [ ! -f .config ]; then echo "Call from kernel source dir!"; exit; fi -V=`pwd | ruby -e "puts STDIN.gets.split('/').last.split('-').last"` +V=`pwd | ruby -e "puts STDIN.gets.split('/').last.split('-')[1..-1].join '-'"`; make mrproper cp -v ../config .config make -- cgit v1.2.3