mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 04:38:14 +04:00
OpenWrt sources diag.sh at the preinit_main hook stage (02_default_set_state), resolving LED aliases from the device tree so that set_state() can blink the boot LED through the preinit and preinit_regular phases before init takes over. For that to work the LED driver must be present before the preinit scripts run. Without the boot flag, AutoProbe only places the module in etc/modules.d, which is loaded by /etc/init.d/boot once preinit has finished. By that point the entire preinit LED window has passed and the boot indication on any ST LED1202-backed LED is silently skipped. Set the boot flag so the module is also linked into etc/modules-boot.d, which procd loads before running the preinit scripts. The previous commits bring the driver to a state where loading it at early boot is appropriate. Assisted-by: LLM Signed-off-by: Manuel Fombuena <fombuena@outlook.com> Link: https://github.com/openwrt/openwrt/pull/23456 Signed-off-by: Robert Marko <robimarko@gmail.com>