From 346148ceb8c67fb2eb26c9bf5484e6c49a138a49 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Wed, 15 Dec 2010 12:40:21 -0800 Subject: Fix pointopoint->peer for iproute. --- net/iproute2.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/iproute2.sh b/net/iproute2.sh index e89e33b6..20873464 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -118,7 +118,12 @@ _add_address() set -- "${one}/$(_netmask2cidr "${three}")" "$@" fi - #config=( "${config[@]//pointopoint/peer}" ) + # tunnel keyword is 'peer' in iproute2, but 'pointopoint' in ifconfig. + if [ "$2" = "pointopoint" ]; then + local one="$1" + shift; shift + set -- "${one}" "peer" "$@" + fi # Always scope lo addresses as host unless specified otherwise if [ "${IFACE}" = "lo" ]; then -- cgit v1.2.3