Update 'root/etc/init.d/easymesh'

pull/1/head
ben 1 year ago
parent 36382a1b6d
commit 83a888a459

@ -79,34 +79,37 @@ add_wifi_mesh() {
fi
if [ "$encryption" != 1 ]; then
apnum=$(echo $mesh_apRadio | awk -F'radio' '{print $2}')
uci set wireless.mesh_$apall.encryption='none'
uci set wireless.wifinet1=wifi-iface
uci set wireless.wifinet1.device=$apall
uci set wireless.wifinet1.mode='ap'
uci set wireless.wifinet1.ssid=$mesh_id
uci set wireless.wifinet1.encryption='none'
uci set wireless.wifinet1.ieee80211r='1'
uci set wireless.wifinet1.mobility_domain=$mobility_domain
uci set wireless.wifinet1.ft_over_ds='0'
uci set wireless.wifinet1.ft_psk_generate_local='1'
uci set wireless.wifinet1.network='lan'
uci delete wireless.$apRadio.disabled
uci set wireless.wifinet$apnum=wifi-iface
uci set wireless.wifinet$apnum.device=$mesh_apRadio
uci set wireless.wifinet$apnum.mode='ap'
uci set wireless.wifinet$apnum.ssid=$mesh_id
uci set wireless.wifinet$apnum.encryption='sae'
uci set wireless.wifinet$apnum.key=$key
uci set wireless.wifinet$apnum.ieee80211r='1'
uci set wireless.wifinet$apnum.mobility_domain=$mobility_domain
uci set wireless.wifinet$apnum.ft_over_ds='0'
uci set wireless.wifinet$apnum.ft_psk_generate_local='1'
uci set wireless.wifinet$apnum.network='lan'
uci delete wireless.$mesh_apRadio.disabled
uci commit wireless
else
apnum=$(echo $mesh_apRadio | awk -F'radio' '{print $2}')
uci set wireless.mesh_$apall.encryption='sae'
uci set wireless.mesh_$apall.key=$key
uci set wireless.wifinet1=wifi-iface
uci set wireless.wifinet1.device=$apall
uci set wireless.wifinet1.mode='ap'
uci set wireless.wifinet1.ssid=$mesh_id
uci set wireless.wifinet1.encryption='sae'
uci set wireless.wifinet1.key=$key
uci set wireless.wifinet1.ieee80211r='1'
uci set wireless.wifinet1.mobility_domain=$mobility_domain
uci set wireless.wifinet1.ft_over_ds='0'
uci set wireless.wifinet1.ft_psk_generate_local='1'
uci set wireless.wifinet1.network='lan'
uci delete wireless.$apRadio.disabled
uci set wireless.wifinet$apnum=wifi-iface
uci set wireless.wifinet$apnum.device=$apall
uci set wireless.wifinet$apnum.mode='ap'
uci set wireless.wifinet$apnum.ssid=$mesh_id
uci set wireless.wifinet$apnum.encryption='sae'
uci set wireless.wifinet$apnum.key=$key
uci set wireless.wifinet$apnum.ieee80211r='1'
uci set wireless.wifinet$apnum.mobility_domain=$mobility_domain
uci set wireless.wifinet$apnum.ft_over_ds='0'
uci set wireless.wifinet$apnum.ft_psk_generate_local='1'
uci set wireless.wifinet$apnum.network='lan'
uci delete wireless.$mesh_apRadio.disabled
uci commit wireless
fi
}

Loading…
Cancel
Save