summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index d2883a74..493c178f 100755
--- a/configure
+++ b/configure
@@ -125,6 +125,9 @@ if [ -n "$no_uname" ]; then
elif [ -e "$kerneldir/include/config/kernel.release" ]; then
depmod_version=`cat "$kerneldir/include/config/kernel.release"`
+ elif [ -e "$kerneldir/.config" ]; then
+ depmod_version=$(awk '/Linux kernel version:/ { print $NF }'
+ "$kerneldir/.config")
else
echo
echo "Error: kernelversion not found"