From 4fd17ab96b3025a594e0e2ace35882573f571cb8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 20 May 2012 00:39:23 +0200 Subject: [PATCH] read interface route metric from config --- interface.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.25.1