summaryrefslogtreecommitdiff
path: root/upgrade_kernel
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-03-05 18:45:32 +0100
committerPatrick Simianer <p@simianer.de>2016-03-05 18:45:32 +0100
commitb8d7ecc7aebee46add130a6aad0fcfcd41cee4f1 (patch)
tree617f4486ef5090336bd08b9afde436101b15db18 /upgrade_kernel
parentc594e8d944d2891dee8df1da55106fb2ab48fd36 (diff)
upgrade_kernel: support for additional version info
Diffstat (limited to 'upgrade_kernel')
-rwxr-xr-xupgrade_kernel2
1 files changed, 1 insertions, 1 deletions
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