I collect my firmware via the OpenWRT SDK, everything is cool, but since I do not use procd , I want to remove the init scripts that come with the openwrt packages and replace some of them with my own.

But when packing in squashfs preinstall postinstall scripts are not executed as I also do not use opkg . There are not enough opportunities to patch every package.

Is there any hook that rootfs before packing rootfs . If I change the tulchan badly, then I will not be able to upgrade later ...

    1 answer 1

    see the section on customizing the target file system .

    after the full build, you can repeat the make target_install step, having made changes to the file system, which is located in the build_ARCH/root/ directory (where ARCH is the architecture, for example, mipsel ).

    • good option, thanks - eri