Add: probing kernel postfix automatically for dkms

This commit is contained in:
turmary 2020-09-27 09:15:41 +01:00
parent 6af23967a5
commit 30216a9c7c

View file

@ -175,7 +175,8 @@ fi
base_ver=$(get_kernel_version) base_ver=$(get_kernel_version)
base_ver=${base_ver%%[-+]*} base_ver=${base_ver%%[-+]*}
# kernels="${base_ver}+ ${base_ver}-v7+ ${base_ver}-v7l+" # kernels="${base_ver}+ ${base_ver}-v7+ ${base_ver}-v7l+"
kernels=$(uname -r) # select exact kernel postfix
kernels=${base_ver}$(echo $uname_r | sed -re 's/^[0-9.]+(.*)/\1/g')
function install_module { function install_module {
local _i local _i