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:
121d90a
)
Set dynamic interface flag after adding them so the version is preserved
author
Steven Barth
<steven@midlink.org>
Thu, 12 Dec 2013 13:43:39 +0000
(14:43 +0100)
committer
Steven Barth
<steven@midlink.org>
Thu, 12 Dec 2013 13:43:39 +0000
(14:43 +0100)
ubus.c
patch
|
blob
|
history
diff --git
a/ubus.c
b/ubus.c
index 9bd5d8c268817e6a042b9f8ae27755c8529180cf..399d46b8d881733d2c03a01cc2b478ce01d46daa 100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-140,7
+140,6
@@
netifd_add_dynamic(struct ubus_context *ctx, struct ubus_object *obj,
if (!iface)
return UBUS_STATUS_UNKNOWN_ERROR;
- interface_set_dynamic(iface);
iface->device_config = true;
config = blob_memdup(msg);
@@
-148,6
+147,7
@@
netifd_add_dynamic(struct ubus_context *ctx, struct ubus_object *obj,
goto error;
interface_add(iface, config);
+ interface_set_dynamic(iface);
// need to look up the interface name again, in case of config update,
iface = vlist_find(&interfaces, name, iface, node);