Re: [OpenWrt-Devel] [PATCH] base-files: Add preinit option to disable config restore

2015-07-14 Thread Felix Fietkau
On 2015-07-13 16:14, Bruno Randolf wrote: Sometimes it's desirable to be sure that config files from a new firmware image overwrite the config files from the previously running firmware and we can not always expect the user to use 'sysupgrade -n'. In this case the option

Re: [OpenWrt-Devel] [PATCH] base-files: Add preinit option to disable config restore

2015-07-14 Thread Bruno Randolf
Hi Felix, On 07/14/2015 10:09 AM, Felix Fietkau wrote: Unless I'm missing something, this seems like a rarely needed special case to me. How about simply adding a custom preinit file to your firmware through files/ instead? Since the preinit script runs boot_run_hook preinit_mount_root just

[OpenWrt-Devel] [PATCH] base-files: Add preinit option to disable config restore

2015-07-13 Thread Bruno Randolf
Sometimes it's desirable to be sure that config files from a new firmware image overwrite the config files from the previously running firmware and we can not always expect the user to use 'sysupgrade -n'. In this case the option TARGET_PREINIT_CONFIG_RESTORE can be set to 'n'. This is more