update the interface list version on config reload, fixes removing old interfaces
authorFelix Fietkau <nbd@openwrt.org>
Thu, 2 Feb 2012 23:15:04 +0000 (00:15 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 2 Feb 2012 23:15:04 +0000 (00:15 +0100)
config.c

index 8472d44f0ff9c9dcaa9e4d59699a45921cca8265..ba97a5c01593a65b8d0628ad0ea1bab37f84e806 100644 (file)
--- a/config.c
+++ b/config.c
@@ -395,6 +395,7 @@ config_init_all(void)
                return;
        }
 
+       vlist_update(&interfaces);
        config_init = true;
        device_lock();
 
@@ -409,5 +410,6 @@ config_init_all(void)
        device_reset_old();
        device_init_pending();
        device_free_unused(NULL);
+       vlist_flush(&interfaces);
        interface_start_pending();
 }