base-files: fix duplicate wifi radio sections when using phy renaming
authorFelix Fietkau <nbd@nbd.name>
Mon, 17 Jul 2023 12:32:21 +0000 (14:32 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 17 Jul 2023 12:33:57 +0000 (14:33 +0200)
commitb993a00b82b1bdd682199e44eb81a70dee78e5c9
tree6de6de48eebe54841e24bf8d44c0a7882194b9c4
parent1c56801dd2e696cac7da45912b5e3ea1165549d5
base-files: fix duplicate wifi radio sections when using phy renaming

The duplicate sections are caused by a race condition at boot, when board.json
is not available. In that case, the final phy name cannot be resolved, and extra
sections referring to the path are created.
Fix this by making sure that wifi config is not being run before board.json
is created.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/base-files/files/etc/init.d/boot
package/base-files/files/sbin/wifi