continued work on scripts

pull/23/head
morrownr 2022-12-08 08:10:21 -06:00
parent 15b31093da
commit 9bcc7b218b
3 changed files with 250 additions and 24 deletions

View File

@ -1,6 +1,24 @@
2022-12-07
Instructions for setting the ISO 3166-1 alpha-2 Country Code in your
Linux distro. If it is not set, you will likely have problems accessing
some channels, especially 5 Ghz and 6 GHz channels. To set your Country
Code from the command line interface:
```
iw reg set US
``` ```
Editing in progress If you are not in the US, please use the country code for your country.
See the list of country codes below.
To check if your country code is properly set:
```
iw reg get
```
```
ISO 3166-1 alpha-2 Country Codes ISO 3166-1 alpha-2 Country Codes
@ -38,7 +56,7 @@ Australia AU
Austria AT Austria AT
Azerbaijan AZ Azerbaijan AZ
Bahamas BS Bahamas BS
@ -76,279 +94,466 @@ 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
Burundi BI
Cambodia KH
Cameroon CM
Canada CA
Cape Verde CV
>< ><
Burkina Faso BF
Burundi BI
Cambodia KH
Cameroon CM
Canada CA
Cape Verde CV
Cayman Cayman
Islands KY Islands KY
Central Central
African African
Republic CF Republic CF
Chad TD Chad TD
Chile CL Chile CL
China CN China CN
Christmas Christmas
Island CX Island CX
Cocos Cocos
(Keeling) (Keeling)
Islands CC Islands CC
Colombia CO Colombia CO
Comoros KM Comoros KM
Congo CG Congo CG
Congo, the Congo, the
Democratic 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
Curaçao CW Curaçao CW
Cyprus CY Cyprus CY
Czech Czech
Republic CZ Republic CZ
Denmark DK Denmark DK
Djibouti DJ Djibouti DJ
Dominica DM Dominica DM
Dominican Dominican
Republic DO Republic DO
Ecuador EC Ecuador EC
Egypt EG Egypt EG
El Salvador SV El Salvador SV
Equatorial Equatorial
Guinea GQ Guinea GQ
Eritrea ER Eritrea ER
Estonia EE Estonia EE
Ethiopia ET Ethiopia ET
Falkland Falkland
Islands Islands
(Malvinas) FK (Malvinas) FK
Faroe IslandsFO Faroe IslandsFO
Fiji FJ Fiji FJ
Finland FI Finland FI
France FR France FR
French French
Guiana GF Guiana GF
French French
Polynesia PF Polynesia PF
French French
Southern Southern
Territories TF Territories TF
Gabon GA Gabon GA
Gambia GM Gambia GM
Georgia GE Georgia GE
Germany DE Germany DE
Ghana GH Ghana GH
Gibraltar GI Gibraltar GI
Greece GR Greece GR
Greenland GL Greenland GL
Grenada GD Grenada GD
Guadeloupe GP Guadeloupe GP
Guam GU Guam GU
Guatemala GT Guatemala GT
Guernsey GG Guernsey GG
Guinea GN Guinea GN
Guinea- Guinea-
Bissau GW Bissau GW
Guyana GY Guyana GY
Haiti HT Haiti HT
Heard Island Heard Island
and and
McDonald McDonald
Islands HM Islands HM
Holy See Holy See
(Vatican City (Vatican City
State) VA State) VA
Honduras HN Honduras HN
Hong Kong HK Hong Kong HK
Hungary HU Hungary HU
Iceland IS Iceland IS
India IN India IN
Indonesia ID Indonesia ID
Iran, Islamic Iran, Islamic
Republic of IR Republic of IR
Iraq IQ 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
Jordan JO Jordan JO
Kazakhstan KZ Kazakhstan KZ
Kenya KE Kenya KE
Kiribati KI Kiribati KI
Korea, Korea,
Democratic Democratic
People's People's
Republic of KP Republic of KP
Korea, Korea,
Republic of KR Republic of KR
Kuwait KW Kuwait KW
Kyrgyzstan KG Kyrgyzstan KG
Lao People's Lao People's
Democratic Democratic
Republic LA Republic LA
Latvia LV Latvia LV
Lebanon LB Lebanon LB
Lesotho LS Lesotho LS
Liberia LR Liberia LR
Libya LY Libya LY
Liechtenstein LI Liechtenstein LI
Lithuania LT Lithuania LT
Luxembourg LU Luxembourg LU
Macao MO Macao MO
Macedonia, Macedonia,
the Former the Former
Yugoslav Yugoslav
Republic of MK Republic of MK
Madagascar MG Madagascar MG
Malawi MW Malawi MW
Malaysia MY Malaysia MY
Maldives MV Maldives MV
Mali ML Mali ML
Malta MT Malta MT
Marshall Marshall
Islands MH Islands MH
Martinique MQ Martinique MQ
Mauritania MR Mauritania MR
Mauritius MU Mauritius MU
Mayotte YT Mayotte YT
Mexico MX Mexico MX
Micronesia, Micronesia,
Federated Federated
States of FM States of FM
Moldova, Moldova,
Republic of MD Republic of MD
Monaco MC Monaco MC
Mongolia MN Mongolia MN
Montenegro ME Montenegro ME
Montserrat MS Montserrat MS
Morocco MA Morocco MA
Mozambique MZ Mozambique MZ
Myanmar MM Myanmar MM
Namibia NA Namibia NA
Nauru NR Nauru NR
Nepal NP Nepal NP
Netherlands NL Netherlands NL
New New
Caledonia NC Caledonia NC
New Zealand NZ New Zealand NZ
Nicaragua NI Nicaragua NI
Niger NE Niger NE
Nigeria NG Nigeria NG
Niue NU Niue NU
Norfolk IslandNF Norfolk IslandNF
Northern Northern
Mariana Mariana
Islands MP Islands MP
Norway NO Norway NO
Oman OM Oman OM
Pakistan PK Pakistan PK
Palau PW Palau PW
Palestine, Palestine,
State of PS State of PS
Panama PA Panama PA
Papua New Papua New
Guinea PG Guinea PG
Paraguay PY Paraguay PY
Peru PE Peru PE
Philippines PH Philippines PH
Pitcairn PN Pitcairn PN
Poland PL Poland PL
Portugal PT Portugal PT
Puerto Rico PR Puerto Rico PR
Qatar QA Qatar QA
Réunion RE Réunion RE
Romania RO Romania RO
Russian Russian
Federation RU Federation RU
Rwanda RW Rwanda RW
Saint Saint
Barthélemy BL Barthélemy BL
Saint Helena, Saint Helena,
Ascension Ascension
and Tristan and Tristan
da Cunha SH da Cunha SH
Saint Kitts Saint Kitts
and Nevis KN and Nevis KN
Saint Lucia LC Saint Lucia LC
Saint Martin Saint Martin
(French part) MF (French part) MF
Saint Pierre Saint Pierre
and MiquelonPM and MiquelonPM
Saint Vincent Saint Vincent
and the and the
Grenadines VC Grenadines VC
Samoa WS Samoa WS
San Marino SM San Marino SM
Sao Tome Sao Tome
and Principe ST and Principe ST
Saudi Arabia SA Saudi Arabia SA
Senegal SN Senegal SN
Serbia RS Serbia RS
Seychelles SC Seychelles SC
Sierra Leone SL Sierra Leone SL
Singapore SG Singapore SG
Sint Maarten Sint Maarten
(Dutch part) SX (Dutch part) SX
Slovakia SK Slovakia SK
Slovenia SI Slovenia SI
Solomon Solomon
Islands SB Islands SB
Somalia SO Somalia SO
South Africa ZA South Africa ZA
South South
Georgia and Georgia and
the South the South
Sandwich Sandwich
Islands GS Islands GS
South Sudan SS South Sudan SS
Spain ES Spain ES
Sri Lanka LK Sri Lanka LK
Sudan SD Sudan SD
Suriname SR Suriname SR
Svalbard and Svalbard and
Jan Mayen SJ Jan Mayen SJ
Swaziland SZ Swaziland SZ
Sweden SE Sweden SE
Switzerland CH Switzerland CH
Syrian Arab Syrian Arab
Republic SY Republic SY
Taiwan, Taiwan,
Province of Province of
China TW China TW
Tajikistan TJ Tajikistan TJ
Tanzania, Tanzania,
United United
Republic of TZ Republic of TZ
Thailand TH Thailand TH
Timor-Leste TL Timor-Leste TL
Togo TG Togo TG
Tokelau TK Tokelau TK
Tonga TO Tonga TO
Trinidad and Trinidad and
Tobago TT Tobago TT
Tunisia TN Tunisia TN
Turkey TR Turkey TR
Turkmenistan TM Turkmenistan TM

View File

@ -4,11 +4,25 @@
# #
# Supports dkms and non-dkms installations. # Supports dkms and non-dkms installations.
# Copyright(c) 2022 Nick Morrow
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
SCRIPT_NAME="install-driver.sh" SCRIPT_NAME="install-driver.sh"
SCRIPT_VERSION="20221207" SCRIPT_VERSION="20221207"
MODULE_NAME="8821cu" MODULE_NAME="8821cu"
DRV_VERSION="5.12.0.4" DRV_VERSION="5.12.0.4"
OPTIONS_FILE="${MODULE_NAME}.conf" # Some distros have a not yet mainlined, patched-in kernel driver that
# must be deactivated so as not to conflict with this driver. The
# filename may need to change when the new in-kernel driver is mainlined.
BLACKLIST_FILE="rtw88_8821cu.conf"
KVER="$(uname -r)" KVER="$(uname -r)"
KARCH="$(uname -m)" KARCH="$(uname -m)"
@ -17,11 +31,7 @@ MODDESTDIR="/lib/modules/${KVER}/kernel/drivers/net/wireless/"
DRV_NAME="rtl${MODULE_NAME}" DRV_NAME="rtl${MODULE_NAME}"
DRV_DIR="$(pwd)" DRV_DIR="$(pwd)"
OPTIONS_FILE="${MODULE_NAME}.conf"
# Some distros have a non-mainlined, patched-in kernel driver
# that has to be deactivated. The filename may need to change
# when the new in-kernel driver is mainlined.
BLACKLIST_FILE="rtw88_8821cu.conf"
# check to ensure sudo was used # check to ensure sudo was used
if [[ $EUID -ne 0 ]] if [[ $EUID -ne 0 ]]

View File

@ -4,11 +4,25 @@
# #
# Supports dkms and non-dkms removals. # Supports dkms and non-dkms removals.
# Copyright(c) 2022 Nick Morrow
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
SCRIPT_NAME="remove-driver.sh" SCRIPT_NAME="remove-driver.sh"
SCRIPT_VERSION="20221204" SCRIPT_VERSION="20221207"
MODULE_NAME="8821cu" MODULE_NAME="8821cu"
DRV_VERSION="5.12.0.4" DRV_VERSION="5.12.0.4"
OPTIONS_FILE="${MODULE_NAME}.conf" # Some distros have a not yet mainlined, patched-in kernel driver that
# must be deactivated so as not to conflict with this driver. The
# filename may need to change when the new in-kernel driver is mainlined.
BLACKLIST_FILE="rtw88_8821cu.conf"
KVER="$(uname -r)" KVER="$(uname -r)"
KARCH="$(uname -m)" KARCH="$(uname -m)"
@ -17,10 +31,7 @@ MODDESTDIR="/lib/modules/${KVER}/kernel/drivers/net/wireless/"
DRV_NAME="rtl${MODULE_NAME}" DRV_NAME="rtl${MODULE_NAME}"
DRV_DIR="$(pwd)" DRV_DIR="$(pwd)"
OPTIONS_FILE="${MODULE_NAME}.conf"
# Some distros have a non-mainlined, patched-in kernel driver
# that has to be deactivated.
BLACKLIST_FILE="rtw88_8821cu.conf"
# check to ensure sudo was used # check to ensure sudo was used
if [[ $EUID -ne 0 ]] if [[ $EUID -ne 0 ]]
@ -62,10 +73,10 @@ 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}"
# determine if dkms is installed and run the appropriate routines # determine if dkms is installed and run the appropriate routines