diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-11-03 11:19:38 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2011-11-03 11:19:38 -0700 |
commit | 527676ff9ae9a32dd086f8de85b1cb4bd17fffc0 (patch) | |
tree | 8cac69c45f8b71ac80c609cd8ce21bb09e7c9140 | |
parent | eb000438a66e37f09dbaacc4f403fb9ec25b69bb (diff) | |
download | vyatta-cfg-quagga-527676ff9ae9a32dd086f8de85b1cb4bd17fffc0.tar.gz vyatta-cfg-quagga-527676ff9ae9a32dd086f8de85b1cb4bd17fffc0.zip |
Remove unnecessary sudo on bonding vif link detect script
-rw-r--r-- | templates/interfaces/bonding/node.tag/vif/node.def | 2 |
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(@) |