blob: 2b0fd4a870ebe895ffe86de68800cc7d69251f46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
[ -f /etc/config/wireless ] || echo "package wireless" > /etc/config/wireless
uci batch <<__EOF__
delete wireless.radio0
delete wireless.@wifi-iface[0]
set wireless.wlan0=wifi-device
set wireless.wlan0.type=mac80211
set wireless.wlan0.phy=phy0
set wireless.wlan0.channel=11
set wireless.wlan0.hwmode=11g
set wireless.wlan0.country=US
add wireless wifi-iface
set wireless.@wifi-iface[-1].device=wlan0
set wireless.@wifi-iface[-1].network=lan
set wireless.@wifi-iface[-1].mode=ap
set wireless.@wifi-iface[-1].ssid=typhoon
set wireless.@wifi-iface[-1].encryption=psk2+aes
set wireless.@wifi-iface[-1].key="passphrase"
set wireless.@wifi-iface[-1].hidden=0
commit wireless
__EOF__
|