[OpenWrt Wiki] The Boot Process
https://openwrt.org/docs/techref/process.boot09.12.2021 · The Boot Process As noted below, this page is woefully out of date Please also see requirements.boot.process This guide it not up-to-date! It does not mention procd This guide shall help you understand, e.g. * When is it time for kexec and when for extroot_configuration (see particularly extroot.theory)? * How does the
OpenWrt Forum Archive
https://forum.archive.openwrt.org/viewtopic.php?id=3133612.08.2011 · They call the K* scripts in /etc/rc.d. And by the order they get called you can see that umount is performed last, so that things like NFS, etc let go of the device. It’s not about powering the hardware off. edit: just put a script after K99umount that toggles an LED on your router, so you know you can unplug safely.
[OpenWrt Wiki] Init Scripts
https://openwrt.org/docs/techref/initscripts23.12.2020 · Init scripts configure the daemons of the Linux system. Init scripts are run to start required processes as part of the boot process.In OpenWrt init is implemented with init.d. The init process that calls the scripts at boot time is provided by Busybox.This article explains how init.d scripts work and how to create them.