projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
include the DEVICE variable in hotplug events
[project/netifd.git]
/
config.c
diff --git
a/config.c
b/config.c
index
9f42471
..
86c2599
100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-344,6
+344,7
@@
config_init_interfaces(const char *name)
uci_network = p;
config_init = true;
+ device_lock();
device_reset_config();
config_init_devices();
@@
-357,7
+358,9
@@
config_init_interfaces(const char *name)
if (!strcmp(s->type, "interface"))
config_parse_interface(s);
}
+
config_init = false;
+ device_unlock();
device_reset_old();
device_init_pending();