tavinus / opkg-upgrade

List and install OpenWRT / LEDE opkg upgradable packages
323 stars 61 forks source link

Optional removal of *-opkg from /etc/config after upgrade #6

Open Goro2030 opened 5 years ago

Goro2030 commented 5 years ago

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

tavinus commented 5 years ago

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:

Ideas are welcome.
Cheers!

lareq commented 3 years ago

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 ;-)