From: Felix Fietkau Date: Wed, 7 Sep 2011 04:34:51 +0000 (+0200) Subject: handle the interface autostart option X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=05ffbadc3ef49b00db2bd119e71044ea2fd2fa4d;hp=e15ef7a8d23fbc6c931d7221ac792fce67729218 handle the interface autostart option --- 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);