1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-12-22 14:26:30 +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
# `rtw_RFE_type` option to be set. If wifi or bluetooth does not work
# 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:
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
```
- Option for Alpine
```
sudo apk add linux-lts-dev make gcc
```
- Option for Void Linux
```

View File

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

View File

@ -30,6 +30,15 @@ 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 mokutil is installed
if ! command -v mokutil >/dev/null 2>&1
then
@ -57,15 +66,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
# support for the NoPrompt option allows non-interactive use of this script
NO_PROMPT=0
@ -98,17 +98,17 @@ fi
# information that helps with bug reports
# kernel
# display kernel
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}"
# gcc version
# display gcc version
gcc_ver=$(gcc --version | grep -i gcc)
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
a2_country_code=$(iw reg get | grep -i country)
echo "Country Code=="${a2_country_code}
@ -237,12 +237,14 @@ fi
if [ $NO_PROMPT -ne 1 ]
then
read -p "Do you want to edit the driver options file now? [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
nano /etc/modprobe.d/${OPTIONS_FILE}
fi
read -p "Do you want to reboot now? (recommended) [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
reboot