Custom handling of ipk upgrade conflicts..
Hi all,
I'm wondering how I could deal with conditionally installing some files in a ipk package, such as configuration files. For example, to not install some file if it already exists, or to merge it in some customized way. The CONFFILES directive is too interactive for my use, and doesn't allow custom handling of conflicts.
Does someone know of an example of a recipe that does a similar thing, perhaps using ipkg preinstall scripts etc?
Cheers!
Rob
It sounds like something that a preinst script would be suited to.
Could you elaborate on the custom merging that you wish to do?
-Graham
Quoted 3 lines · Graham Gower
It sounds like something that a preinst script would be suited to.
Could you elaborate on the custom merging that you wish to do?
For example, it could merge setting entries in a config file with a new file from the ipk package. Or decide not to install the file at all, if there already is a file that is 'good enough' (i.e. passes some custom testing).
Cheers,
Rob