Use custom KVER and KARCH from env if set

This commit is contained in:
jlkDE 2023-02-05 16:32:45 +01:00
parent 83db18e610
commit d1b426877b
2 changed files with 12 additions and 4 deletions

View File

@ -32,8 +32,12 @@ SCRIPT_VERSION="20230628"
MODULE_NAME="88x2bu"
DRV_VERSION="5.13.1"
if [ -z "${KARCH+1}" ]; then
KARCH="$(uname -m)"
fi
if [ -z "${KVER+1}" ]; then
KVER="$(uname -r)"
fi
MODDESTDIR="/lib/modules/${KVER}/kernel/drivers/net/wireless/"
DRV_NAME="rtl${MODULE_NAME}"

View File

@ -32,8 +32,12 @@ SCRIPT_VERSION="20230226"
MODULE_NAME="88x2bu"
DRV_VERSION="5.13.1"
if [ -z "${KARCH+1}" ]; then
KARCH="$(uname -m)"
fi
if [ -z "${KVER+1}" ]; then
KVER="$(uname -r)"
fi
MODDESTDIR="/lib/modules/${KVER}/kernel/drivers/net/wireless/"
DRV_NAME="rtl${MODULE_NAME}"