diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-07 06:34:51 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-07 06:34:51 +0200 |
commit | 05ffbadc3ef49b00db2bd119e71044ea2fd2fa4d (patch) | |
tree | 8b23bbfd3fd1308aac4c75905ad7125dca932ee7 | |
parent | e15ef7a8d23fbc6c931d7221ac792fce67729218 (diff) |
handle the interface autostart option
-rw-r--r-- | interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/interface.c b/interface.c index d8f7de3..387d349 100644 --- a/interface.c +++ b/interface.c @@ -238,6 +238,11 @@ interface_alloc(const char *name, struct blob_attr *attr) device_add_user(&iface->main_dev, dev); } + if ((cur = tb[IFACE_ATTR_AUTO])) + iface->autostart = blobmsg_get_bool(cur); + else + iface->autostart = true; + netifd_ubus_add_interface(iface); config_set_state(&iface->config, attr); |