mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-12-22 14:26:30 +00:00
checks for needed support
This commit is contained in:
parent
44856e2b91
commit
7bcf9b5821
@ -30,6 +30,33 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check to ensure nano is installed
|
||||||
|
if ! command -v nano >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
echo "A required package appears to not be installed."
|
||||||
|
echo "Please install the following package: nano"
|
||||||
|
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
|
||||||
|
echo "A required package appears to not be installed."
|
||||||
|
echo "Please install the following package: rfkill"
|
||||||
|
echo "Once the package is 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
|
||||||
|
|
||||||
# support for the NoPrompt option allows non-interactive use of this script
|
# support for the NoPrompt option allows non-interactive use of this script
|
||||||
NO_PROMPT=0
|
NO_PROMPT=0
|
||||||
|
|
||||||
@ -65,6 +92,8 @@ fi
|
|||||||
echo "Linux Kernel=${KVER}"
|
echo "Linux Kernel=${KVER}"
|
||||||
# architecture - for ARM: aarch64 = 64 bit, armv7l = 32 bit
|
# architecture - for ARM: aarch64 = 64 bit, armv7l = 32 bit
|
||||||
echo "CPU Architecture=${KARCH}"
|
echo "CPU Architecture=${KARCH}"
|
||||||
|
# gcc version
|
||||||
|
echo "gcc --version | grep -i gcc"
|
||||||
#getconf LONG_BIT (may be handy in the future)
|
#getconf LONG_BIT (may be handy in the future)
|
||||||
|
|
||||||
# blacklist the in-kernel module (driver) so that there is no conflict
|
# blacklist the in-kernel module (driver) so that there is no conflict
|
||||||
|
Loading…
Reference in New Issue
Block a user