Hey all I am trying to figure out why my Wifi does not come on when i start or reboot my router.
I am using the Seeed router for the CM4. If i SSH into the router and do the command
wifi
Then I refresh the page the wifi is enabled:
I tried adding wifi to the startup script:
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
wifi;
exit 0
And even some other commands that I found when googling:
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
uci set wireless.@wifi-device[0].disabled=0
uci commit wireless
wifi
exit 0
When I run the command uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.path='platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
wireless.radio0.band='5g'
wireless.radio0.htmode='VHT80'
wireless.radio0.country='US'
wireless.radio0.cell_density='0'
wireless.radio0.channel='149'
wireless.radio0.disabled='0'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.ssid='xxxxxxxxwifi'
wireless.default_radio0.encryption='psk2'
wireless.default_radio0.key='xxxxxxxxxxx'
And the wifi status
:
{
"radio0": {
"up": false,
"pending": false,
"autostart": true,
"disabled": false,
"retry_setup_failed": true,
"config": {
"path": "platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1",
"band": "5g",
"htmode": "VHT80",
"country": "US",
"cell_density": 0,
"channel": "149",
"disabled": false
},
"interfaces": [
{
"section": "default_radio0",
"config": {
"mode": "ap",
"ssid": "xxxxxxxxwifi",
"encryption": "psk2",
"key": "xxxxxxxxxx",
"network": [
"lan"
],
"mode": "ap"
},
"vlans": [
],
"stations": [
]
}
]
}
}
So what can I do in order for this to start automatically when the router starts or reboots?