From: Steven Barth Date: Tue, 31 Mar 2015 11:32:31 +0000 (+0200) Subject: netifd: add metric argument for proto_add_ipv4_route X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=33429c18f64bfb3842b05d9eb86efbbdce7e909b;p=oweals%2Fnetifd.git netifd: add metric argument for proto_add_ipv4_route Signed-off-by: Steven Barth --- 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() {