From 7f5df3ea03fe410f781478aeffc201537756b040 Mon Sep 17 00:00:00 2001
From: Daniil Baturin <daniil@baturin.org>
Date: Sat, 25 Aug 2018 20:19:04 +0200
Subject: T797: add sudo to ip command calls in other interface types.

---
 templates/interfaces/vti/node.def | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'templates/interfaces/vti/node.def')

diff --git a/templates/interfaces/vti/node.def b/templates/interfaces/vti/node.def
index 0b369f82..5e8adb07 100644
--- a/templates/interfaces/vti/node.def
+++ b/templates/interfaces/vti/node.def
@@ -24,8 +24,8 @@ fi
 
 delete: 
   if [ -d /sys/class/net/$VAR(@) ] ; then
-      ip link set $VAR(@) down
-      ip tunnel del $VAR(@) mode ipip
+      sudo ip link set $VAR(@) down
+      sudo ip tunnel del $VAR(@) mode ipip
   fi
 
 end: 
-- 
cgit v1.2.3

