File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
target/linux/imx/base-files/etc/uci-defaults Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ uci -q batch <<-EOF >/dev/null
2+ set firewall.@zone[0].input='ACCEPT'
3+ set firewall.@zone[1].input='ACCEPT'
4+ commit network
5+ EOF
6+
7+ exit 0
Original file line number Diff line number Diff line change 1+ # multi if version
2+ uci delete wireless.@wifi-device[0].disabled
3+ uci delete wireless.@wifi-device[-1].disabled
4+ uci set wireless.@wifi-iface[-1].network='wwan'
5+ uci set wireless.@wifi-iface[-1].mode='sta'
6+ uci set wireless.@wifi-iface[-1].ssid='$0102030405$'
7+ uci delete wireless.@wifi-iface[-1].encryption
8+ uci commit wireless
9+
10+ # create wwan zone as it is the default for scanned networks
11+ uci set network.@device[0].ports='wlan0'
12+ uci set network.wwan='interface'
13+ uci set network.wwan.proto='dhcp'
14+ uci commit network
15+
16+ # and add wwan to wan zone in firewall
17+ uci set firewall.@zone[1].network='wwan wan wan6'
18+ uci commit firewall
19+
20+ exit 0
You can’t perform that action at this time.
0 commit comments