minor updates

This commit is contained in:
morrownr 2022-12-07 09:39:21 -06:00
parent 2def66aec5
commit 2590672d71
3 changed files with 29 additions and 14 deletions

View File

@ -281,6 +281,12 @@ sudo dnf -y install git dkms kernel-devel kernel-debug-devel
sudo zypper install -t pattern devel_kernel dkms sudo zypper install -t pattern devel_kernel dkms
``` ```
- Option for Alpine
```
sudo apk add linux-lts-dev make gcc
```
- Option for Void Linux - Option for Void Linux
``` ```

View File

@ -4,3 +4,4 @@ MAKE[0]="'make' -j$(nproc) KVER=${kernelver} KSRC=/lib/modules/${kernelver}/buil
CLEAN="'make' clean" CLEAN="'make' clean"
BUILT_MODULE_NAME[0]="88x2bu" BUILT_MODULE_NAME[0]="88x2bu"
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless" DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
AUTOINSTALL="yes"

View File

@ -5,7 +5,7 @@
# Supports dkms and non-dkms installations. # Supports dkms and non-dkms installations.
SCRIPT_NAME="install-driver.sh" SCRIPT_NAME="install-driver.sh"
SCRIPT_VERSION="20221204" SCRIPT_VERSION="20221205"
MODULE_NAME="88x2bu" MODULE_NAME="88x2bu"
DRV_VERSION="5.13.1" DRV_VERSION="5.13.1"
OPTIONS_FILE="${MODULE_NAME}.conf" OPTIONS_FILE="${MODULE_NAME}.conf"
@ -19,7 +19,8 @@ DRV_NAME="rtl${MODULE_NAME}"
DRV_DIR="$(pwd)" DRV_DIR="$(pwd)"
# Some distros have a non-mainlined, patched-in kernel driver # Some distros have a non-mainlined, patched-in kernel driver
# that has to be deactivated. # that has to be deactivated. The filename may need to change
# when the new in-kernel driver is mainlined.
BLACKLIST_FILE="rtw88_8822bu.conf" BLACKLIST_FILE="rtw88_8822bu.conf"
# check to ensure sudo was used # check to ensure sudo was used
@ -30,6 +31,15 @@ then
exit 1 exit 1
fi 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 mokutil is installed # check to ensure mokutil is installed
if ! command -v mokutil >/dev/null 2>&1 if ! command -v mokutil >/dev/null 2>&1
then then
@ -57,15 +67,6 @@ then
exit 1 exit 1
fi 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
@ -98,16 +99,21 @@ fi
# information that helps with bug reports # information that helps with bug reports
# kernel # display kernel version
echo "Linux Kernel=${KVER}" echo "Linux Kernel=${KVER}"
# architecture - for ARM: aarch64 = 64 bit, armv7l = 32 bit # display architecture
echo "CPU Architecture=${KARCH}" echo "CPU Architecture=${KARCH}"
# gcc version # display gcc version
gcc_ver=$(gcc --version | grep -i gcc) gcc_ver=$(gcc --version | grep -i gcc)
echo "gcc --version="${gcc_ver} echo "gcc --version="${gcc_ver}
# display ISO 3166-1 alpha-2 Country Code
# https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
a2_country_code=$(iw reg get | grep -i country)
echo "Country Code=="${a2_country_code}
# check for secure mode # check for secure mode
# #
@ -232,12 +238,14 @@ fi
if [ $NO_PROMPT -ne 1 ] if [ $NO_PROMPT -ne 1 ]
then then
read -p "Do you want to edit the driver options file now? [y/N] " -n 1 -r read -p "Do you want to edit the driver options file now? [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]] if [[ $REPLY =~ ^[Yy]$ ]]
then then
nano /etc/modprobe.d/${OPTIONS_FILE} nano /etc/modprobe.d/${OPTIONS_FILE}
fi fi
read -p "Do you want to reboot now? (recommended) [y/N] " -n 1 -r read -p "Do you want to reboot now? (recommended) [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]] if [[ $REPLY =~ ^[Yy]$ ]]
then then
reboot reboot