TRB2XX - Persistent User Scripts

Hello.

I am trying to set up a custom script on my TRB246 which measures the time between Input1=high and Input1=low and saves it in a file.
Is there any way to keep the script in backups and future firmware updates?

Currently, I have my scripts running in /etc/scripts, which are then called by the event juggler. I want to use this backup to setup more TRB246 devices without uploading the scripts for each device.

Add a line to sysupgrade.conf – this .conf is a list of files and directories that should be preserved during a fw upgrade. The scripts will be within any backups you take. However, if the router is reset to its factory settings the file and directory will be reset and you will need to restore from a backup file. Also, as the /etc/ directory uses flash memory, it is preserved after a reboot.

The line you need to add to the /etc/sysupgrade.conf file is …..

/etc/scripts/

Thanks for your help, it worked!

Did not expect the sysUpgrade.conf to change the behaviour auf backups, but thats the way it works. All my scripts/files have been included in my backup.

You saved me a lot of work, appreciate your help :slight_smile:

Good to see you’re all sorted.

It’s worth mentioning also, that if you do a firmware upgrade/reflash with ‘Keep Settings = OFF’, then your /etc/scripts/ directory will not be preserved. This statement is valid for firmware v7.18.1 on RUTX devices.

Hello @TiReX,

Could you please confirm whether the issue has been resolved, or if you still require any assistance?

Best regards,

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.