Skip to content

Commit 0f693c1

Browse files
committed
Start AP on fresh install
1 parent 668d83a commit 0f693c1

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

0 commit comments

Comments
 (0)