Location for scripts to survive an upgrade


I am using Netgear 7800 and Zyxel 6817 Routers with larger Flash memory. Recurrently I update the snapshots installed if I need a new package and preserve the configuration. But my shell scripts are deleted anyway. What would be the best location that my custom scripts will not be deleted? So I have to restore packages only which is very easy.


you need to append the script file path to /etc/sysupgrade.conf

for example

echo "/path/to/myscript.sh" >> /etc/sysupgrade.conf

Or write it with vi or through Luci web interface at the page in System --> Backup -> Configuration tab


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