opkg-upgrade
opkg-upgrade copied to clipboard
Optional removal of *-opkg from /etc/config after upgrade
Nice to have:
A) Ask the user if he/she would like to remove all default configuration files that opkg places in /etc/config ( /etc/config/*-opkg ) B) If so, delete them
Another approach would be to move them out to another directory
Yep. That is on the wish-list.
For now, I need to understand how exactly opkg behaves related to that.
I THINK it will create /etc/config/*-opkg
when the new config files are different.
Then it seems to cause errors if you already have a -opkg
file and updates again
(update a package more than 2 times).
I need to be sure how that behaves first.
And then offer options like:
- Move files
- Delete files
- Merge files
- Diff files (requires diff-utils)
- Git Diff files (requires git or git-http)
Ideas are welcome.
Cheers!
but there is --force-maintainer to overwrite all config settings with default from maintainer. I can code it as an option, but still thinking if not better to accept each change because of some individual changes, that may disconnect user from logging in. Waiting for pro and cons ;-)