Restart Wireless by CLI

Hi,
i try to turn off my wireless radio0 (by cronjob) according to the documentation via CLI:

uci set wireless.default_radio0.disabled=…1…
uci commit wireless
/etc/init.d/wireless restart

But with the last command i get this error: -ash: /etc/init.d/wireless: not found

So i am not able to restart the wifi of my RUTX50 and load the settings.

I can’t find the error…
Thank you fpr your help.
Marc

Hello,
Try /sbin/wifi reload.

Regards.

Hi,
thank you for your post.
/sbin/wifi reload is also not working…

Hello,

Please use /etc/init.d/network restart instead of /etc/init.d/wireless restart.

Hope this helps!

Best regards,

Hi.
I tried this also in the past.
No wifi restart / change of the state…

I have just tested executing these commands on the RUTX50:
uci set wireless.default_radio0.disabled='1'
uci commit
/etc/init.d/network restart

The wireless interface was successfully disabled. Please ensure that you have entered all the commands correctly. Try running them again and let me know how it goes.

Best regards,

perfect! That works.
The problem was the …1…
‘1’ is correct.
Thank you very much…

You’re welcome!

If you have any further questions or need additional assistance, please feel free to reach out.

Best regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.