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
This commit is contained in:
Bart Van Assche
2014-07-04 05:39:28 +00:00
parent b41aed61e3
commit bdcba0604a

View File

@@ -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 $?