summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-02-03 00:15:04 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-02-03 00:15:04 +0100
commitc0bb8addecae578d7766b94bd6681be82b621675 (patch)
tree3e1accdbb3def6a3579bf1b174c49bf2bc64870a
parente270a58cef32d7b48edd6661e339ca855d177fe2 (diff)
update the interface list version on config reload, fixes removing old interfaces
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index 8472d44..ba97a5c 100644
--- 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();
}