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

Bruno Randolf br1 at einfach.org
Tue Jul 14 06:41:44 EDT 2015

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
> before the config restore, you should be able to add your code in the
> right place and use it to delete or move sysupgrade.tgz.

Yes, you are right, this is a simpler way. Forget my patch then.

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list