From ce5f972dee9f92cd4d79fc8ffb3e169e9164757f Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sat, 25 Aug 2018 20:26:41 +0200 Subject: T797: add sudo to ip command calls. --- templates/interfaces/input/node.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/interfaces/input/node.def b/templates/interfaces/input/node.def index 945c6db..5288888 100644 --- a/templates/interfaces/input/node.def +++ b/templates/interfaces/input/node.def @@ -8,8 +8,8 @@ syntax:expression: pattern $VAR(@) "^ifb[0-9]+$" ; "name must be (ifb0-ifb999)" begin: [ -d /sys/module/ifb ] || sudo modprobe ifb numifbs=0 -create: ip link add $VAR(@) type ifb && ip link set $VAR(@) up +create: sudo ip link add $VAR(@) type ifb && sudo ip link set $VAR(@) up delete: [ -d /sys/class/net/$VAR(@) ] || exit 0 /opt/vyatta/sbin/vyatta-qos.pl --check-target $VAR(@) || exit 1 - ip link delete dev $VAR(@) + sudo ip link delete dev $VAR(@) -- cgit v1.2.3