diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2015-09-01 14:43:57 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-09-02 17:29:51 +0200 |
commit | d1c9d4bc6a6925fc3b39c1c4062c2b9082a4e161 (patch) | |
tree | c0c7b350f8954e9b06fec02a43e67dc8f21953a9 /device.c | |
parent | e057fcb4a260c70f0271f8fdcd7140775a09791f (diff) |
device: apply settings when existing device becomes external
Make sure device settings are applied when existing device becomes external
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |