[RUT950] Autostart wifi on autoreboot

Hello. I have a RUT950 router, and I need to ensure that when a scheduled reboot occurs, the WiFi is activated in case it was disconnected. What code would I need to add in the custom scripts section to achieve this?

Hello,

Thanks for reaching out.

I want to let you know that when you reboot the Teltonika Networks device that uses our official firmware, the WiFi is automatically turned on, regardless if it was on or off prior to the reboot. Therefore, could you please elaborate what would be the use case of this script?

In general, we do offer a way of running startup scripts, that you can add by navigating to System → Custom scripts or editing the /etc/rc.local file via the command line. You can find more information on it here: RUTX11 Custom Scripts - Teltonika Networks Wiki

Here is an example of a script, that you could run on a startup and it would check, whether the wifi access point is on, if not, it would turn it on:

Best Regards,
Mahmoud B.

Thanks for the quick reply!
I have programmed the automatic restart every day at night, but if the wifi is disconnected, when the restart is done, it does not activate. That’s why I had thought of adding a custom script so that the wifi is activated when performing the scheduled reboot of the router.
As for the option you indicate, I can’t find it anywhere in the different sections of the menu:
-System
–Administration
—General
–Access Control
—Recipients
—Certificates
—Troubleshoot
–Firmware
–User Settings
—Change Password
—System Users
–Backup
–Profiles
—Profiles
—Scheduler
–CLI
–License
–Custom Scripts
–Setup Wizard
—General
—LAN
—Mobile
—Wireless
—RMS
–Reboot

I try this:

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
uci get wireless.@wifi -iface[0].disabled
exit 0

and it doesn’t work either
My firmware version is RUT9_R_00.07.04.3
I apologize for my horrible English. Greetings.

Hello,

Regarding the customized script for sending SMS about the Wi-Fi status after a reboot, I have formulated the script within this file.

Custom Script to send Wi-Fi status after reboot.zip (203.9 KB)

Thanks,
Mahmoud

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