diff options
author | Steven Barth <steven@midlink.org> | 2015-03-31 13:32:31 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-03-31 13:32:31 +0200 |
commit | 33429c18f64bfb3842b05d9eb86efbbdce7e909b (patch) | |
tree | 3c59a226f616d3a33f337f626c2d4cb373b54ce0 /scripts | |
parent | 94bfecc312f8bcecb857d6b070d1c22869226ce4 (diff) |
netifd: add metric argument for proto_add_ipv4_route
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/netifd-proto.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/netifd-proto.sh b/scripts/netifd-proto.sh index 999bd68..ce60cd0 100644 --- a/scripts/netifd-proto.sh +++ b/scripts/netifd-proto.sh @@ -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() { |