base-files: fix duplicate wifi radio sections when using phy renaming
[openwrt/openwrt.git] / package / base-files / files / etc / init.d / boot
index 749d9e971141c63542e220bbd5c175f40041b174..d17754d087942b71422fa5b15f2a25fb9274cc6e 100755 (executable)
@@ -39,6 +39,7 @@ boot() {
        grep -q pstore /proc/filesystems && /bin/mount -o noatime -t pstore pstore /sys/fs/pstore
        [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
 
+       touch /tmp/.config_pending
        /sbin/kmodloader
 
        [ ! -f /etc/config/wireless ] && {
@@ -47,6 +48,8 @@ boot() {
        }
 
        /bin/config_generate
+       rm -f /tmp/.config_pending
+       /sbin/wifi config
        uci_apply_defaults
        sync