update check_kernel_headers() for Ubuntu header packages
This commit is contained in:
parent
7e4917be89
commit
fc77a4c00a
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,10 @@ function check_kernel_headers() {
|
||||||
[ "X$VER_RUN" == "X$VER_HDR" ] && {
|
[ "X$VER_RUN" == "X$VER_HDR" ] && {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
VER_HDR=$(dpkg -L linux-headers-$VER_RUN | egrep -m1 "/lib/modules/[[:print:]]+/build" | awk -F'/' '{ print $4; }')
|
||||||
|
[ "X$VER_RUN" == "X$VER_HDR" ] && {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
# echo RUN=$VER_RUN HDR=$VER_HDR
|
# echo RUN=$VER_RUN HDR=$VER_HDR
|
||||||
echo " !!! Your kernel version is $VER_RUN"
|
echo " !!! Your kernel version is $VER_RUN"
|
||||||
|
|
Loading…
Reference in a new issue