more country code stuff

pull/23/head
morrownr 2022-12-08 22:34:43 -06:00
parent 9bcc7b218b
commit 7112000cc4
2 changed files with 77 additions and 75 deletions

View File

@ -6,7 +6,7 @@ some channels, especially 5 Ghz and 6 GHz channels. To set your Country
Code from the command line interface:
```
iw reg set US
sudo iw reg set US
```
If you are not in the US, please use the country code for your country.
@ -22,155 +22,152 @@ iw reg get
ISO 3166-1 alpha-2 Country Codes
Name Code
Name Code
Afghanistan AF
Afghanistan AF
Åland Islands AX
Åland Islands AX
Albania AL
Albania AL
Algeria DZ
Algeria DZ
American
Samoa AS
Samoa AS
Andorra AD
Andorra AD
Angola AO
Angola AO
Anguilla AI
Anguilla AI
Antarctica AQ
Antarctica AQ
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 BO
Bolivia BO
Bonaire, Sint
Eustatius and
Saba BQ
Saba BQ
Bosnia and
Herzegovina BA
Herzegovina BA
Botswana BW
Botswana BW
Bouvet Island BV
Bouvet Island BV
Brazil BR
Brazil BR
British Indian
Ocean Territory IO
Ocean Territory IO
Brunei
Darussalam BN
Darussalam BN
Bulgaria BG
Bulgaria BG
Burkina Faso BF
Burkina Faso BF
Burundi BI
Burundi BI
Cambodia KH
Cambodia KH
Cameroon CM
Cameroon CM
Canada CA
Canada CA
Cape Verde CV
><
Cape Verde CV
Cayman
Islands KY
Islands KY
Central
African
Republic CF
Republic CF
Chad TD
Chad TD
Chile CL
Chile CL
China CN
China CN
Christmas
Island CX
Island CX
Cocos
(Keeling)
Islands CC
Islands CC
Colombia CO
Colombia CO
Comoros KM
Comoros KM
Congo CG
Congo CG
Congo, the
Democratic
Republic of
the CD
Congo 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
Republic CZ
Republic CZ
Denmark DK
Denmark DK
Djibouti DJ
Djibouti DJ
Dominica DM
Dominica DM
Dominican
Republic DO
Republic DO
><
Ecuador EC

View File

@ -16,7 +16,7 @@
# GNU General Public License for more details.
SCRIPT_NAME="install-driver.sh"
SCRIPT_VERSION="20221207"
SCRIPT_VERSION="20221208"
MODULE_NAME="8821cu"
DRV_VERSION="5.12.0.4"
# Some distros have a not yet mainlined, patched-in kernel driver that
@ -128,12 +128,17 @@ echo "CPU Architecture=${KARCH}"
gcc_ver=$(gcc --version | grep -i gcc)
echo "gcc --version="${gcc_ver}
# display ISO 3166-1 alpha-2 Country Code
# https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
# display and check ISO 3166-1 alpha-2 Country Code
a2_country_code=$(iw reg get | grep -i country)
echo "Country Code="${a2_country_code}
if [[ $a2_country_code == *"00"* ]];
then
echo "The Country Code is not properly set."
echo "File alpha-2_Country_Codes is located in the driver directory."
echo "Please read and follow the directions in the file."
fi
# check secure mode status
# display secure mode status
# run if mokutil is installed
if command -v mokutil >/dev/null 2>&1
then