projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
942aa06
)
device: set dev->default_config to false for devices parsed from config
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 23 Jan 2015 22:54:19 +0000
(23:54 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 23 Jan 2015 22:54:19 +0000
(23:54 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
config.c
patch
|
blob
|
history
diff --git
a/config.c
b/config.c
index 7e2d1edbd0a24dda792c65d218bb4ae14d7f48ab..90ec979d761c042c0c803ca82928f4779ab719bd 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-209,7
+209,9
@@
config_init_devices(void)
blob_buf_init(&b, 0);
uci_to_blob(&b, s, params);
if (devtype) {
- device_create(name, devtype, b.head);
+ dev = device_create(name, devtype, b.head);
+ if (!dev)
+ continue;
} else {
dev = device_get(name, 1);
if (!dev)
@@
-217,6
+219,7
@@
config_init_devices(void)
device_set_config(dev, dev->type, b.head);
}
+ dev->default_config = false;
}
}