From: Felix Fietkau Date: Sat, 19 May 2012 22:39:23 +0000 (+0200) Subject: read interface route metric from config X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4fd17ab96b3025a594e0e2ace35882573f571cb8;p=oweals%2Fnetifd.git read interface route metric from config --- diff --git a/interface.c b/interface.c index edf9b27..ef7c01c 100644 --- a/interface.c +++ b/interface.c @@ -410,6 +410,9 @@ interface_init(struct interface *iface, const char *name, if ((cur = tb[IFACE_ATTR_DNS_SEARCH])) interface_add_dns_search_list(&iface->config_ip, cur); + if ((cur = tb[IFACE_ATTR_METRIC])) + iface->metric = blobmsg_get_u32(cur); + iface->config_autostart = iface->autostart; }