diff --git a/8821cu.conf b/8821cu.conf index 32fcbbc..1e14310 100644 --- a/8821cu.conf +++ b/8821cu.conf @@ -5,7 +5,7 @@ # 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 # 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: options 8821cu rtw_drv_log_level=0 rtw_led_ctrl=1 rtw_vht_enable=1 rtw_power_mgnt=1 diff --git a/README.md b/README.md index 36a600f..ff49351 100644 --- a/README.md +++ b/README.md @@ -312,6 +312,12 @@ sudo dnf -y install git dkms kernel-devel openssl sudo zypper install -t pattern devel_kernel dkms ``` +- Option for Alpine + +``` +sudo apk add linux-lts-dev make gcc +``` + - Option for Void Linux ``` diff --git a/alpha-2_Country_Codes b/alpha-2_Country_Codes index 2db4966..f229d41 100644 --- a/alpha-2_Country_Codes +++ b/alpha-2_Country_Codes @@ -6,51 +6,86 @@ ISO 3166-1 alpha-2 Country Codes Name Code -Afghanistan AF -Åland IslandsAX -Albania AL -Algeria DZ +Afghanistan AF + +Åland Islands AX + +Albania AL + +Algeria DZ + American -Samoa AS -Andorra AD -Angola AO -Anguilla AI -Antarctica AQ +Samoa AS + +Andorra AD + +Angola AO + +Anguilla AI + +Antarctica AQ + Antigua and -Barbuda AG -Argentina AR -Armenia AM -Aruba AW -Australia AU -Austria AT +Barbuda AG + +Argentina AR + +Armenia AM + +Aruba AW + +Australia AU + +Austria AT + Azerbaijan AZ -Bahamas BS -Bahrain BH -Bangladesh BD -Barbados BB -Belarus BY -Belgium BE -Belize BZ -Benin BJ -Bermuda BM -Bhutan BT -Bolivia, -Plurinational -State of BO + +Bahamas BS + +Bahrain BH + +Bangladesh BD + +Barbados BB + +Belarus BY + +Belgium BE + +Belize BZ + +Benin BJ + +Bermuda BM + +Bhutan BT + +Bolivia BO + Bonaire, Sint Eustatius and -Saba BQ +Saba BQ + Bosnia and -Herzegovina BA -Botswana BW -Bouvet IslandBV -Brazil BR +Herzegovina BA + +Botswana BW + +Bouvet Island BV + +Brazil BR + British Indian Ocean -Territory IO +Territory IO + Brunei -Darussalam BN -Bulgaria BG +Darussalam BN + +Bulgaria BG + +>< + Burkina Faso BF Burundi BI Cambodia KH @@ -78,7 +113,9 @@ Democratic Republic of the CD Cook Islands CK - Costa Rica CR + +Costa Rica CR + Côte d'Ivoire CI Croatia HR Cuba CU @@ -150,7 +187,7 @@ Iraq IQ Ireland IE Isle of Man IM Israel IL - Italy IT +Italy IT Jamaica JM Japan JP Jersey JE @@ -222,7 +259,7 @@ Norfolk IslandNF Northern Mariana Islands MP - Norway NO +Norway NO Oman OM Pakistan PK @@ -296,7 +333,7 @@ Sweden SE Switzerland CH Syrian Arab Republic SY - Taiwan, +Taiwan, Province of China TW diff --git a/install-driver.sh b/install-driver.sh index f0ef307..14c7ab0 100755 --- a/install-driver.sh +++ b/install-driver.sh @@ -30,6 +30,15 @@ then exit 1 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 if ! command -v mokutil >/dev/null 2>&1 then @@ -57,15 +66,6 @@ then exit 1 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 NO_PROMPT=0 @@ -98,17 +98,17 @@ fi # information that helps with bug reports -# kernel +# display kernel 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}" -# gcc version +# display gcc version gcc_ver=$(gcc --version | grep -i gcc) 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 a2_country_code=$(iw reg get | grep -i country) echo "Country Code=="${a2_country_code} @@ -237,12 +237,14 @@ fi if [ $NO_PROMPT -ne 1 ] then read -p "Do you want to edit the driver options file now? [y/N] " -n 1 -r + echo if [[ $REPLY =~ ^[Yy]$ ]] then nano /etc/modprobe.d/${OPTIONS_FILE} fi read -p "Do you want to reboot now? (recommended) [y/N] " -n 1 -r + echo if [[ $REPLY =~ ^[Yy]$ ]] then reboot