From: Felix Fietkau Date: Thu, 2 Feb 2012 23:15:04 +0000 (+0100) Subject: update the interface list version on config reload, fixes removing old interfaces X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=c0bb8addecae578d7766b94bd6681be82b621675 update the interface list version on config reload, fixes removing old interfaces --- 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(); }