I have a little script that rotates my guest WiFi password, but it keeps getting deleted when I run owut upgrade
. Is there a specific directory that's appropriate to use for custom scripts that I want to persist across upgrades?
It can be anywhere. Just add the full name of the file, including path (say, /root/myLittleScript.sh
), to /etc/sysupgrade.conf
. You can do it directly or via LuCI, by going to System >> Backup / Flash Firmware >> Configuration. Data that is shown in the big textbox on that page comes from /etc/sysupgrade.conf
.
2 Likes
Perfect, thanks very much!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.