I wish to use a script on my RUT200. However, at each upgrade it gets wiped.
Is there a location I can use that will “stick” over an upgrade?
Regards, Martin
I wish to use a script on my RUT200. However, at each upgrade it gets wiped.
Is there a location I can use that will “stick” over an upgrade?
Regards, Martin
Good afternoon,
The recommended way is to place your custom startup commands or scripts inside the /etc/rc.local file, which is executed at the end of the boot cycle. You can edit this file via the router’s WebUI or command line. Scripts placed here will run on every boot, including after firmware upgrades.
Avoid placing custom scripts in directories like /bin/ or other system folders that may become read-only or get wiped during upgrades. For example, after some firmware updates, the /bin/ folder is read-only, and scripts placed there will not persist.
If you need to store script files themselves, consider placing them in the /root/ directory (e.g., /root/connection), which may persist, but you still need to ensure they are invoked from a persistent startup script like /etc/rc.local.
When performing firmware upgrades via the WebUI or command line, you can choose the option to “Keep settings” enabled. This helps preserve configuration files, including custom scripts set in startup files, but it does not guarantee persistence if scripts are placed in non-persistent locations.
Regards,
Arturas
Just add the path of the script to /etc/sysupgrade.conf il will be kept during the upgrade.
Neat! Thank you.
Testing? Can I “upgrade” to RUT2M_R_00.07.14.2_WEBUI.bin via the WebUI and then Upgrade again?
Regards, M.
Yes it should be possible to do that.