From: Hans Dedecker Date: Tue, 1 Sep 2015 12:43:57 +0000 (+0200) Subject: device: apply settings when existing device becomes external X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d1c9d4bc6a6925fc3b39c1c4062c2b9082a4e161;p=oweals%2Fnetifd.git device: apply settings when existing device becomes external Make sure device settings are applied when existing device becomes external Signed-off-by: Hans Dedecker --- diff --git a/device.c b/device.c index 4a8db70..0d73138 100644 --- a/device.c +++ b/device.c @@ -446,6 +446,7 @@ device_get(const char *name, int create) dev = avl_find_element(&devices, name, dev, avl); if (dev) { if (create > 1 && !dev->external) { + system_if_apply_settings(dev, &dev->settings, dev->settings.flags); dev->external = true; device_set_present(dev, true); }