1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-09-14 18:59:24 +00:00

various updates

This commit is contained in:
morrownr 2022-12-06 09:32:40 -06:00
parent 6c3d6bf71d
commit 9e9eec8fc8
4 changed files with 99 additions and 54 deletions

View File

@ -5,7 +5,7 @@
# Warning: Some adapters based on the rtl8821cu chipset may require the # Warning: Some adapters based on the rtl8821cu chipset may require the
# `rtw_RFE_type` option to be set. If wifi or bluetooth does not work # `rtw_RFE_type` option to be set. If wifi or bluetooth does not work
# after driver installation, see the appropriate section in the below # after driver installation, see the appropriate section in the below
# documentation. # documentation. This issue has not been seen on wifi only adapters.
# #
# Edit the following line to change, add or delete options: # Edit the following line to change, add or delete options:
options 8821cu rtw_drv_log_level=0 rtw_led_ctrl=1 rtw_vht_enable=1 rtw_power_mgnt=1 options 8821cu rtw_drv_log_level=0 rtw_led_ctrl=1 rtw_vht_enable=1 rtw_power_mgnt=1

View File

@ -312,6 +312,12 @@ sudo dnf -y install git dkms kernel-devel openssl
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

@ -6,51 +6,86 @@ ISO 3166-1 alpha-2 Country Codes
Name Code Name Code
Afghanistan AF Afghanistan AF
Åland IslandsAX
Albania AL Åland Islands AX
Algeria DZ
Albania AL
Algeria DZ
American American
Samoa AS Samoa AS
Andorra AD
Angola AO Andorra AD
Anguilla AI
Antarctica AQ Angola AO
Anguilla AI
Antarctica AQ
Antigua and Antigua and
Barbuda AG Barbuda AG
Argentina AR
Armenia AM Argentina AR
Aruba AW
Australia AU Armenia AM
Austria AT
Aruba AW
Australia AU
Austria AT
Azerbaijan AZ Azerbaijan AZ
Bahamas BS
Bahrain BH Bahamas BS
Bangladesh BD
Barbados BB Bahrain BH
Belarus BY
Belgium BE Bangladesh BD
Belize BZ
Benin BJ Barbados BB
Bermuda BM
Bhutan BT Belarus BY
Bolivia,
Plurinational Belgium BE
State of BO
Belize BZ
Benin BJ
Bermuda BM
Bhutan BT
Bolivia BO
Bonaire, Sint Bonaire, Sint
Eustatius and Eustatius and
Saba BQ Saba BQ
Bosnia and Bosnia and
Herzegovina BA Herzegovina BA
Botswana BW
Bouvet IslandBV Botswana BW
Brazil BR
Bouvet Island BV
Brazil BR
British Indian British Indian
Ocean Ocean
Territory IO Territory IO
Brunei Brunei
Darussalam BN Darussalam BN
Bulgaria BG
Bulgaria BG
><
Burkina Faso BF Burkina Faso BF
Burundi BI Burundi BI
Cambodia KH Cambodia KH
@ -78,7 +113,9 @@ Democratic
Republic of Republic of
the CD the CD
Cook Islands CK Cook Islands CK
Costa Rica CR
Costa Rica CR
Côte d'Ivoire CI Côte d'Ivoire CI
Croatia HR Croatia HR
Cuba CU Cuba CU
@ -150,7 +187,7 @@ Iraq IQ
Ireland IE Ireland IE
Isle of Man IM Isle of Man IM
Israel IL Israel IL
Italy IT Italy IT
Jamaica JM Jamaica JM
Japan JP Japan JP
Jersey JE Jersey JE
@ -222,7 +259,7 @@ Norfolk IslandNF
Northern Northern
Mariana Mariana
Islands MP Islands MP
Norway NO Norway NO
Oman OM Oman OM
Pakistan PK Pakistan PK
@ -296,7 +333,7 @@ Sweden SE
Switzerland CH Switzerland CH
Syrian Arab Syrian Arab
Republic SY Republic SY
Taiwan, Taiwan,
Province of Province of
China TW China TW

View File

@ -30,6 +30,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 +66,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,17 +98,17 @@ fi
# information that helps with bug reports # information that helps with bug reports
# kernel # display kernel
echo "Linux Kernel=${KVER}" echo "Linux Kernel=${KVER}"
# architecture - for ARM: aarch64 = 64 bit, armv7l = 32 bit # display architecture - for ARM: aarch64 = 64 bit, armv7l = 32 bit
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}
# check ISO 3166-1 alpha-2 Country Code # display ISO 3166-1 alpha-2 Country Code
# https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 # https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
a2_country_code=$(iw reg get | grep -i country) a2_country_code=$(iw reg get | grep -i country)
echo "Country Code=="${a2_country_code} echo "Country Code=="${a2_country_code}
@ -237,12 +237,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