Page tree
Skip to end of metadata
Go to start of metadata
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
uci del network.wan.ifname
uci add wireless wifi-iface
uci set wireless.@wifi-iface[0].network='wan'
uci set wireless.@wifi-iface[0].device='radio0'
uci set wireless.@wifi-iface[0].mode='sta'
uci set wireless.@wifi-iface[0].encryption='psk2'
uci set wireless.@wifi-iface[0].ssid='WIFITOCONNECTTO'
uci set wireless.@wifi-iface[0].key='PASSPHRASE'
uci add wireless wifi-iface
uci set wireless.@wifi-iface[-1].network='lan'
uci set wireless.@wifi-iface[-1].device='radio0'
uci set wireless.@wifi-iface[-1].mode='ap'
uci set wireless.@wifi-iface[-1].encryption='psk2'
uci set wireless.@wifi-iface[-1].ssid='YOURWIFI'
uci set wireless.@wifi-iface[-1].key='PASSPHRASEOFYOURCHOICE'
uci add wireless wifi-iface
uci set wireless.@wifi-iface[-1].network='lan'
uci set wireless.@wifi-iface[-1].device='radio1'
uci set wireless.@wifi-iface[-1].mode='ap'
uci set wireless.@wifi-iface[-1].encryption='psk2'
uci set wireless.@wifi-iface[-1].ssid='YOURWIFI'
uci set wireless.@wifi-iface[-1].key='PASSPHRASEOFYOURCHOICE'
uci set network.lan.ipaddr='192.168.2.1'
uci set system.@system[0].hostname='openwrt'
uci set network.lan.hostname="`uci get system.@system[0].hostname`"
uci set wireless.radio0.htmode='HT40'
uci set wireless.radio0.channel='auto'
uci set wireless.radio0.disabled='0'
uci set wireless.radio1.htmode='HT40'
uci set wireless.radio1.channel='auto'
uci set wireless.radio1.disabled='0'
uci commit
sync
reboot


References

  • No labels
Write a comment…