summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-11-14 08:05:10 -0800
committerStephen Hemminger <shemminger@vyatta.com>2011-11-14 08:05:10 -0800
commit69936056e06e4be70364c47c2e108f1e00148bb2 (patch)
treed359ae34daf83e982bbe4f22247a1597f6188f4a
parent6e848919f7ffa0608b20cc0a2069826336fd05b7 (diff)
downloadvyatta-cfg-system-69936056e06e4be70364c47c2e108f1e00148bb2.tar.gz
vyatta-cfg-system-69936056e06e4be70364c47c2e108f1e00148bb2.zip
Remove unnecessary sudo on ethtool
ethtool has capabilties set, therefore no need for sudo.
-rw-r--r--templates/interfaces/ethernet/node.tag/disable-flow-control/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def b/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def
index 702e1d29..ef62b4e1 100644
--- a/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def
+++ b/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def
@@ -2,7 +2,7 @@ priority: 320 # Must run after interface is configured.
help: Disable Ethernet flow control (pause frames)
-create: sudo ethtool --pause $VAR(../@) autoneg off tx off rx off
+create: ethtool --pause $VAR(../@) autoneg off tx off rx off
delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0
- sudo ethtool --pause $VAR(../@) autoneg on tx on rx on
+ ethtool --pause $VAR(../@) autoneg on tx on rx on