i have created a version with specefic Script to run on first boot (uci-defaults)
and now if i use the attended sys upgrade, does it preserve those settings? if i do i factory reset those settings still [reserved? because i cant find the option to choose a local version in the attended sys upgrade page, and there is no option to choose: Script to run on first boot (uci-defaults) ?
PS: I hope this helps clear up your doubts (I read your post but I don't understand exactly what problems you're encountering and where you're starting from).
and this:
I quote “In a live router you can see the existing UCI defaults scripts in /rom/etc/uci-defaults , as /etc/uci-defaults itself is typically empty (after all scripts have been run successfully and have been deleted).”
I assume the script does this (based on your posts):
PS: I remind you that if a sysupgrade is performed, usually (if it is not skipped) the configuration of the modified files is restored (for example /etc/config/network, /etc/config/dhcp, etc.)
I quote “Preferably have an assistant physically present at the location of the device, if you upgrade it from remote (as some devices may require a hard reset after the update)
Execute the following command to upgrade:
sysupgrade -v /tmp/firmware_image.bin
You can add the `-n` option if you DO NOT want to preserve any old configuration files and configure upgraded device from clean state (network/system settings will be lost as well)”
PS: The script could also be called through /etc/rc.local