From bdcba0604a207ef65422bedb6069d68d877daa15 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 4 Jul 2014 05:39:28 +0000 Subject: [PATCH] Make scripts/kernel-functions again compatible with 2.6.x kernels git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5661 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/kernel-functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/kernel-functions b/scripts/kernel-functions index cf9c1bf20..ce527498e 100644 --- a/scripts/kernel-functions +++ b/scripts/kernel-functions @@ -95,8 +95,9 @@ function extract_kernel_tree { | patch -p1 -f -s; ) \ || return $? else - extract_kernel_archive $kver || return $? - mv linux-$kver linux-$1 + extract_kernel_archive $1 || + { extract_kernel_archive $kver && mv linux-$kver linux-$1; } || + return $? fi mv "linux-$1" ".." || return $? cd "../linux-$1" || return $?