From: Michael Tremer Date: Fri, 4 Aug 2017 14:49:10 +0000 (+0000) Subject: ip-tunnel: Use "ip link" instead of "ip tunnel" X-Git-Tag: 009~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7357cc354182b23463a6c4dde3e7c09c2eaa9fe;p=network.git ip-tunnel: Use "ip link" instead of "ip tunnel" ip tunnel seems to be in an awful condition and ip link works just fine. Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.ip-tunnel b/src/functions/functions.ip-tunnel index c2885130..0e1115b2 100644 --- a/src/functions/functions.ip-tunnel +++ b/src/functions/functions.ip-tunnel @@ -107,7 +107,7 @@ ip_tunnel_add() { log DEBUG "Creating tunnel device '${device}' (mode=${mode})..." # Create the device. - if ! cmd ip tunnel add ${device} mode ${mode} ${cmd_args}; then + if ! cmd ip link add name ${device} type ${mode} ${cmd_args}; then error "Could not create tunnel device ${device}" return ${EXIT_ERROR} fi @@ -129,7 +129,7 @@ ip_tunnel_del() { log DEBUG "Removing tunnel device '${device}'..." - ip tunnel del ${device} + ip link del ${device} assert [ $? -eq 0 ] }