projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
interface: suppress unnecessary device config overrides
[project/netifd.git]
/
config.c
diff --git
a/config.c
b/config.c
index
7319b3c
..
4e91e18
100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-136,7
+136,8
@@
config_parse_interface(struct uci_section *s, bool alias)
if (blob_len(b.head) == 0)
return;
if (blob_len(b.head) == 0)
return;
- device_set_config(dev, dev->type, b.head);
+ if (iface->device_config && dev->default_config)
+ device_set_config(dev, dev->type, b.head);
return;
error_free_config:
free(config);
return;
error_free_config:
free(config);
@@
-217,7
+218,7
@@
config_init_devices(void)
if (!dev)
continue;
if (!dev)
continue;
- device_apply_config(dev, dev->type, b
lob_memdup(b.head)
);
+ device_apply_config(dev, dev->type, b
.head
);
}
dev->default_config = false;
}
}
dev->default_config = false;
}