mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-09-18 12:33:50 +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:
|
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.
|
If you are not in the US, please use the country code for your country.
|
||||||
@ -113,8 +113,6 @@ Canada CA
|
|||||||
|
|
||||||
Cape Verde CV
|
Cape Verde CV
|
||||||
|
|
||||||
><
|
|
||||||
|
|
||||||
Cayman
|
Cayman
|
||||||
Islands KY
|
Islands KY
|
||||||
|
|
||||||
@ -141,10 +139,7 @@ Comoros KM
|
|||||||
|
|
||||||
Congo CG
|
Congo CG
|
||||||
|
|
||||||
Congo, the
|
Congo CD
|
||||||
Democratic
|
|
||||||
Republic of
|
|
||||||
the CD
|
|
||||||
|
|
||||||
Cook Islands CK
|
Cook Islands CK
|
||||||
|
|
||||||
@ -172,6 +167,8 @@ Dominica DM
|
|||||||
Dominican
|
Dominican
|
||||||
Republic DO
|
Republic DO
|
||||||
|
|
||||||
|
><
|
||||||
|
|
||||||
Ecuador EC
|
Ecuador EC
|
||||||
|
|
||||||
Egypt EG
|
Egypt EG
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
SCRIPT_NAME="install-driver.sh"
|
SCRIPT_NAME="install-driver.sh"
|
||||||
SCRIPT_VERSION="20221207"
|
SCRIPT_VERSION="20221208"
|
||||||
MODULE_NAME="8821cu"
|
MODULE_NAME="8821cu"
|
||||||
DRV_VERSION="5.12.0.4"
|
DRV_VERSION="5.12.0.4"
|
||||||
# Some distros have a not yet mainlined, patched-in kernel driver that
|
# 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)
|
gcc_ver=$(gcc --version | grep -i gcc)
|
||||||
echo "gcc --version="${gcc_ver}
|
echo "gcc --version="${gcc_ver}
|
||||||
|
|
||||||
# display ISO 3166-1 alpha-2 Country Code
|
# display and check 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)
|
a2_country_code=$(iw reg get | grep -i country)
|
||||||
echo "Country Code="${a2_country_code}
|
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
|
# run if mokutil is installed
|
||||||
if command -v mokutil >/dev/null 2>&1
|
if command -v mokutil >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user