mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-20 22:16:06 +04:00
The mutex file via '/tmp/.config_pending' should prevent the command '/sbin/wifi config' from being called in the ieee80211 hotplug when loading the kernel modules [1]. Since the file '/etc/board.json' does not yet exist and could be incomplete. The '/etc/board.json' file is modified in the '/sbin/wifi config' script. This is only generated during the first boot when '/bin/config_generate' is called. This whole handling is unclean. Therefore the creation of the default configuration '/etc/config/network', '/etc/config/system' and '/etc/board.json' via '/sbin/config_generate' is moved to the preinint after the rootfile system has been mounted The advantage now is that on an ieee80211 hotplug event, the '/etc/board.json' is already present which simplifies the whole thing. [1] https://github.com/openwrt/openwrt/blob/main/package/network/config/wifi-scripts/files/etc/hotplug.d/ieee80211/10-wifi-detect Fixes:b993a00b82("base-files: fix duplicate wifi radio sections when using phy renaming") Signed-off-by: Florian Eckert <fe@dev.tdt.de> (cherry picked from commitca54521988)