Add bens change

pull/2/head
Jason Hawks 11 months ago
parent 26e57ec5b2
commit eddb37816e

@ -309,11 +309,13 @@ set_easymesh() {
uci set network.lan.gateway=$dns uci set network.lan.gateway=$dns
uci set system.@system[0].hostname=$gateway 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 # Configure LAN bridge and add ethernet interfaces to the bridge
uci set network.lan.ifname='eth0 eth1 wan lan1 lan2' # Add ethernet and wan uci del network.@device[0].ports
uci add_list network.@device[0].ports='bat0'
uci add_list network.@device[0].ports='eth0'
uci add_list network.@device[0].ports='lan1'
uci add_list network.@device[0].ports='lan2'
uci add_list network.@device[0].ports='wan'
uci set network.lan.type='bridge' uci set network.lan.type='bridge'
# If you also need to configure the wireless network to be part of the bridge: # If you also need to configure the wireless network to be part of the bridge:

Loading…
Cancel
Save