mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-12-22 22:36:49 +00:00
various updates
This commit is contained in:
parent
6c3d6bf71d
commit
9e9eec8fc8
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -7,50 +7,85 @@ ISO 3166-1 alpha-2 Country Codes
|
|||||||
Name Code
|
Name Code
|
||||||
|
|
||||||
Afghanistan AF
|
Afghanistan AF
|
||||||
Åland IslandsAX
|
|
||||||
|
Åland Islands AX
|
||||||
|
|
||||||
Albania AL
|
Albania AL
|
||||||
|
|
||||||
Algeria DZ
|
Algeria DZ
|
||||||
|
|
||||||
American
|
American
|
||||||
Samoa AS
|
Samoa AS
|
||||||
|
|
||||||
Andorra AD
|
Andorra AD
|
||||||
|
|
||||||
Angola AO
|
Angola AO
|
||||||
|
|
||||||
Anguilla AI
|
Anguilla AI
|
||||||
|
|
||||||
Antarctica AQ
|
Antarctica AQ
|
||||||
|
|
||||||
Antigua and
|
Antigua and
|
||||||
Barbuda AG
|
Barbuda AG
|
||||||
|
|
||||||
Argentina AR
|
Argentina AR
|
||||||
|
|
||||||
Armenia AM
|
Armenia AM
|
||||||
|
|
||||||
Aruba AW
|
Aruba AW
|
||||||
|
|
||||||
Australia AU
|
Australia AU
|
||||||
|
|
||||||
Austria AT
|
Austria AT
|
||||||
|
|
||||||
Azerbaijan AZ
|
Azerbaijan AZ
|
||||||
|
|
||||||
Bahamas BS
|
Bahamas BS
|
||||||
|
|
||||||
Bahrain BH
|
Bahrain BH
|
||||||
|
|
||||||
Bangladesh BD
|
Bangladesh BD
|
||||||
|
|
||||||
Barbados BB
|
Barbados BB
|
||||||
|
|
||||||
Belarus BY
|
Belarus BY
|
||||||
|
|
||||||
Belgium BE
|
Belgium BE
|
||||||
|
|
||||||
Belize BZ
|
Belize BZ
|
||||||
|
|
||||||
Benin BJ
|
Benin BJ
|
||||||
|
|
||||||
Bermuda BM
|
Bermuda BM
|
||||||
|
|
||||||
Bhutan BT
|
Bhutan BT
|
||||||
Bolivia,
|
|
||||||
Plurinational
|
Bolivia BO
|
||||||
State of BO
|
|
||||||
Bonaire, Sint
|
Bonaire, Sint
|
||||||
Eustatius and
|
Eustatius and
|
||||||
Saba BQ
|
Saba BQ
|
||||||
|
|
||||||
Bosnia and
|
Bosnia and
|
||||||
Herzegovina BA
|
Herzegovina BA
|
||||||
|
|
||||||
Botswana BW
|
Botswana BW
|
||||||
Bouvet IslandBV
|
|
||||||
|
Bouvet Island BV
|
||||||
|
|
||||||
Brazil BR
|
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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user