|
|
|
@ -111,6 +111,7 @@ if [ "$encryption" != 1 ]; then
|
|
|
|
|
|
|
|
|
|
if [ $found -eq 0 ]; then
|
|
|
|
|
uci set wireless.mesh_$apall.encryption='none'
|
|
|
|
|
uci set wireless.mesh_$apall.disabled='0'
|
|
|
|
|
uci set wireless.wifinet$apnum=wifi-iface
|
|
|
|
|
uci set wireless.wifinet$apnum.device=$mesh_apRadio
|
|
|
|
|
uci set wireless.wifinet$apnum.mode='ap'
|
|
|
|
@ -122,6 +123,7 @@ if [ "$encryption" != 1 ]; then
|
|
|
|
|
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 set wireless.wifinet$apnum.disabled=0
|
|
|
|
|
uci commit wireless
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
@ -147,6 +149,7 @@ else
|
|
|
|
|
|
|
|
|
|
if [ $found -eq 0 ]; then
|
|
|
|
|
uci set wireless.mesh_$apall.encryption='sae'
|
|
|
|
|
uci set wireless.mesh_$apall.disabled='0'
|
|
|
|
|
uci set wireless.mesh_$apall.key=$key
|
|
|
|
|
uci set wireless.wifinet$apnum=wifi-iface
|
|
|
|
|
uci set wireless.wifinet$apnum.device=$apall
|
|
|
|
@ -159,6 +162,7 @@ else
|
|
|
|
|
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 set wireless.wifinet$apnum.disabled=0
|
|
|
|
|
uci commit wireless
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
@ -300,8 +304,11 @@ uci set network.lan.netmask=$netmask
|
|
|
|
|
uci set network.lan.gateway=$dns
|
|
|
|
|
uci set system.@system[0].hostname=$gateway
|
|
|
|
|
|
|
|
|
|
# First, delete the existing interface list from br-lan
|
|
|
|
|
uci -q delete network.lan.ifname
|
|
|
|
|
|
|
|
|
|
# Configure LAN bridge and add ethernet interfaces to the bridge
|
|
|
|
|
uci set network.lan.ifname='eth0 eth1 wan lan1 lan2 lan3' # Add ethernet interfaces and the kitchen sink here
|
|
|
|
|
uci set network.lan.ifname='eth0 eth1 wan lan1 lan2' # Add ethernet and wan
|
|
|
|
|
uci set network.lan.type='bridge'
|
|
|
|
|
|
|
|
|
|
# If you also need to configure the wireless network to be part of the bridge:
|
|
|
|
|