summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-11-03 11:19:38 -0700
committerStephen Hemminger <shemminger@vyatta.com>2011-11-03 11:19:38 -0700
commit527676ff9ae9a32dd086f8de85b1cb4bd17fffc0 (patch)
tree8cac69c45f8b71ac80c609cd8ce21bb09e7c9140 /templates/interfaces
parenteb000438a66e37f09dbaacc4f403fb9ec25b69bb (diff)
downloadvyatta-cfg-system-527676ff9ae9a32dd086f8de85b1cb4bd17fffc0.tar.gz
vyatta-cfg-system-527676ff9ae9a32dd086f8de85b1cb4bd17fffc0.zip
Remove unnecessary sudo on bonding vif link detect script
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/interfaces/bonding/node.tag/vif/node.def b/templates/interfaces/bonding/node.tag/vif/node.def
index 35a00835..63394e44 100644
--- a/templates/interfaces/bonding/node.tag/vif/node.def
+++ b/templates/interfaces/bonding/node.tag/vif/node.def
@@ -12,7 +12,7 @@ create: read -a SLAVES </sys/class/net/$VAR(../@)/bonding/slaves
fi
ip link add link $VAR(../@) name "$VAR(../@).$VAR(@)" type vlan id $VAR(@) || exit 1
ip link set "$VAR(../@).$VAR(@)" up
- sudo sh -c "/opt/vyatta/sbin/vyatta-link-detect $VAR(../@).$VAR(@) on"
+ /opt/vyatta/sbin/vyatta-link-detect "$VAR(../@).$VAR(@)" on
delete: [ -d /sys/class/net/$VAR(../@).$VAR(@) ] || exit 0
ip link delete dev "$VAR(../@).$VAR(@)" type vlan id $VAR(@)