mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-31 12:05:13 +08:00
update 2026-09-20 02:20:59
This commit is contained in:
1 parent
deb27aee9d
commit
33c69f15d2
1985 files changed
+460
-1523312
No files matched your search
@@ -63,12 +63,16 @@ add_wizard() {
|
||||
[ -n "$lan_dns" ] || lan_dns='223.5.5.5'
|
||||
[ -n "$dhcp" ] && uci -q set dhcp.lan.ignore="1" || uci -q del dhcp.lan.ignore
|
||||
uci -q set firewall.@zone[0].masq='1'
|
||||
uci -q set network.wan.proto='none'
|
||||
WAN=$(uci -q get network.wan.device)
|
||||
uci add_list network.@device[0].ports="$WAN" 2>/dev/null
|
||||
uci -q delete network.wan
|
||||
uci -q delete network.wan6
|
||||
elif [ "${siderouter}" == "0" ]; then
|
||||
uci -q del network.lan.gateway
|
||||
uci -q del dhcp.lan.ignore
|
||||
uci -q del network.lan.dns
|
||||
uci -q del firewall.@zone[0].masq
|
||||
uci -q set network.wan.device='eth1'
|
||||
uci -q set network.wan.proto='dhcp'
|
||||
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user