/lib/preinit directory

Hi all.
I want to disable the failsafe mode when openwrt is already installed on the router.
This directory seems to be the right one but no matter what i change in these files the failsafe is always there.
Can somebody share how to do it ?

You need to modify squashfs, since failsafe starts before /overlay.

1 Like

Like brada4 says, you need to modify the files going into the compiled image, so you need to do the change before image compilation.

Preinit only uses the files on the flashed image (rom/), so any changes you do later via overlayfs (actually on overlay/), will have no effect on preinit time.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.