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

main
ben 11 months ago
parent ce680ccfe5
commit 46f3d32c68

@ -307,11 +307,13 @@ uci set network.lan.netmask=$netmask
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.cfg030f15.ports
uci add_list network.cfg030f15.ports='bat0'
uci add_list network.cfg030f15.ports='eth0'
uci add_list network.cfg030f15.ports='lan1'
uci add_list network.cfg030f15.ports='lan2'
uci add_list network.cfg030f15.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:
@ -328,14 +330,15 @@ uci commit wireless
/etc/init.d/network restart /etc/init.d/network restart
/etc/init.d/system reload /etc/init.d/system reload
# Removing firewall configuration
mv /etc/config/firewall /etc/config/firewall.unused
# restart wifi # restart wifi
wifi reload wifi reload
wifi up wifi up
uci set wireless.wifinet$apnum.disabled=0
uci commit wireless
# Removing firewall configuration
mv /etc/config/firewall /etc/config/firewall.unused
#fi
else else

Loading…
Cancel
Save