mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-11-22 13:34:47 +00:00
trying to check if header files are installed
This commit is contained in:
parent
f48ecb0bc8
commit
24e1955db0
@ -42,7 +42,7 @@ confirm that this is the correct driver for your adapter.
|
||||
|
||||
- x86, i686
|
||||
- x86-64, amd64
|
||||
- armv7l (arm)
|
||||
- armv7l, armv6l (arm)
|
||||
- aarch64 (arm64)
|
||||
|
||||
### Compatible Kernels
|
||||
@ -52,7 +52,7 @@ confirm that this is the correct driver for your adapter.
|
||||
|
||||
### Tested Compilers
|
||||
|
||||
- gcc 9, 11 and 12
|
||||
- gcc 9, 10, 11 and 12
|
||||
|
||||
### Tested Linux Distributions
|
||||
|
||||
|
@ -50,15 +50,6 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check to ensure iw is installed
|
||||
if ! command -v iw >/dev/null 2>&1
|
||||
then
|
||||
echo "A required package appears to not be installed."
|
||||
echo "Please install the following package: iw"
|
||||
echo "Once the package is installed, please run \"sudo ./${SCRIPT_NAME}\""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check to ensure make is installed
|
||||
if ! command -v make >/dev/null 2>&1
|
||||
then
|
||||
@ -68,6 +59,23 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check to see if header files are installed
|
||||
if [ ! -d "/lib/modules/$(uname -r)/build" ]; then
|
||||
echo "Your kernel headers aren't properly installed."
|
||||
echo "Please consult your distro documentation."
|
||||
echo "Once the header files are installed, please run \"sudo ./${SCRIPT_NAME}\""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check to ensure iw is installed
|
||||
if ! command -v iw >/dev/null 2>&1
|
||||
then
|
||||
echo "A required package appears to not be installed."
|
||||
echo "Please install the following package: iw"
|
||||
echo "Once the package is installed, please run \"sudo ./${SCRIPT_NAME}\""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check to ensure rfkill is installed
|
||||
if ! command -v rfkill >/dev/null 2>&1
|
||||
then
|
||||
@ -145,10 +153,6 @@ then
|
||||
mokutil --sb-state
|
||||
fi
|
||||
|
||||
# header files are normally stored in ?
|
||||
# how can we determine:
|
||||
# if the correct header files are installed?
|
||||
|
||||
# blacklist the in-kernel module (driver) so that there is no conflict
|
||||
echo "Installing ${BLACKLIST_FILE} to: /etc/modprobe.d"
|
||||
cp -f ${BLACKLIST_FILE} /etc/modprobe.d
|
||||
|
Loading…
Reference in New Issue
Block a user