netifd: add metric argument for proto_add_ipv4_route
authorSteven Barth <steven@midlink.org>
Tue, 31 Mar 2015 11:32:31 +0000 (13:32 +0200)
committerSteven Barth <steven@midlink.org>
Tue, 31 Mar 2015 11:32:31 +0000 (13:32 +0200)
Signed-off-by: Steven Barth <steven@midlink.org>
scripts/netifd-proto.sh

index 999bd6829dc3a952966dddfaeba252440a1965f7..ce60cd0cdb9a190f0cc7648ccc3f56fd3a218aa2 100644 (file)
@@ -121,8 +121,9 @@ proto_add_ipv4_route() {
        local mask="$2"
        local gw="$3"
        local source="$4"
+       local metric="$5"
 
-       append PROTO_ROUTE "$target/$mask/$gw////$source"
+       append PROTO_ROUTE "$target/$mask/$gw/$metric///$source"
 }
 
 proto_add_ipv6_route() {