From a0f359bf861f060d563dd0424d51dac1bf96340c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 10 May 2014 20:03:22 +0200 Subject: [PATCH] system-linux: always set the ifindex for hotplug devices on init Signed-off-by: Felix Fietkau --- system-linux.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/system-linux.c b/system-linux.c index b513948..7a194ca 100644 --- a/system-linux.c +++ b/system-linux.c @@ -611,11 +611,8 @@ void system_if_clear_state(struct device *dev) static char buf[256]; char *bridge; - if (dev->external) - return; - device_set_ifindex(dev, system_if_resolve(dev)); - if (!dev->ifindex) + if (dev->external || !dev->ifindex) return; system_if_flags(dev->ifname, 0, IFF_UP); -- 2.25.1