diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-20 00:39:23 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-20 00:39:23 +0200 |
commit | 4fd17ab96b3025a594e0e2ace35882573f571cb8 (patch) | |
tree | c5b9acff503034d4fd588080da23ecfb52edc774 | |
parent | b0b11b2295fbb8399949139d82156e123e005902 (diff) |
read interface route metric from config
-rw-r--r-- | interface.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |