mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-11-26 07:14:41 +00:00
more country code stuff
This commit is contained in:
parent
9bcc7b218b
commit
7112000cc4
@ -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.
|
||||
@ -113,8 +113,6 @@ Canada CA
|
||||
|
||||
Cape Verde CV
|
||||
|
||||
><
|
||||
|
||||
Cayman
|
||||
Islands KY
|
||||
|
||||
@ -141,10 +139,7 @@ Comoros KM
|
||||
|
||||
Congo CG
|
||||
|
||||
Congo, the
|
||||
Democratic
|
||||
Republic of
|
||||
the CD
|
||||
Congo CD
|
||||
|
||||
Cook Islands CK
|
||||
|
||||
@ -172,6 +167,8 @@ Dominica DM
|
||||
Dominican
|
||||
Republic DO
|
||||
|
||||
><
|
||||
|
||||
Ecuador EC
|
||||
|
||||
Egypt EG
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user