# 2.4G SSID配置
for i in $(seq 211 214); do
    uci batch <<EOF
add wireless wifi-iface
set wireless.@wifi-iface[-1].device='radio0'
set wireless.@wifi-iface[-1].network="lan$i"
set wireless.@wifi-iface[-1].mode='ap'
set wireless.@wifi-iface[-1].ssid="192.168.$i.1_2G"
set wireless.@wifi-iface[-1].encryption='psk2'
set wireless.@wifi-iface[-1].key='12345678'
set wireless.@wifi-iface[-1].country='CN'
EOF
done

# 5G SSID配置
for i in $(seq 215 222); do
    uci batch <<EOF
add wireless wifi-iface
set wireless.@wifi-iface[-1].device='radio1'
set wireless.@wifi-iface[-1].network="lan$i"
set wireless.@wifi-iface[-1].mode='ap'
set wireless.@wifi-iface[-1].ssid="192.168.$i.1_5G"
set wireless.@wifi-iface[-1].encryption='psk2'
set wireless.@wifi-iface[-1].key='12345678'
set wireless.@wifi-iface[-1].country='CN'
set wireless.@wifi-iface[-1].hwmode='11ac'
set wireless.@wifi-iface[-1].channel='149'
EOF
done

uci commit wireless
/etc/init.d/network reload