mirror of
https://github.com/unraid/webgui.git
synced 2026-05-20 05:09:38 -05:00
Update rc.wireless
This commit is contained in:
@@ -257,6 +257,7 @@ wifi_join(){
|
||||
REGION=$(grep -Pom1 '^REGION="\K[^"]+' $CFG)
|
||||
REGION_XX=$(grep -Pom1 '^REGION_XX="\K[^"]+' $CFG)
|
||||
[[ $REGION == '00' ]] && CC=$REGION_XX || CC=$REGION
|
||||
[[ -n $(pgrep wpa_supplicant) ]] && pkill wpa_supplicant
|
||||
rm -f $WPA
|
||||
if [[ $SECURITY == "auto" ]]; then
|
||||
log "wpa_configuration AUTO"
|
||||
@@ -276,7 +277,6 @@ wifi_join(){
|
||||
else
|
||||
run wpa_configuration "$SECURITY"
|
||||
fi
|
||||
[[ -n $(pgrep wpa_supplicant) ]] && pkill wpa_supplicant
|
||||
run wpa_supplicant -B -i $PORT -c $WPA
|
||||
# IPv4 address assignment
|
||||
IP=ipv4
|
||||
|
||||
Reference in New Issue
Block a user