summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-20 17:03:01 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-20 17:08:03 -0700
commit900ce84ea8a12b98c1fc276161504946166950dc (patch)
tree52982373e16b0997f0466a7a42a34165e497cf7c
parent56c205f7070a541555c81bb8546d0a7ba4359e60 (diff)
downloadvyatta-cfg-qos-900ce84ea8a12b98c1fc276161504946166950dc.tar.gz
vyatta-cfg-qos-900ce84ea8a12b98c1fc276161504946166950dc.zip
Don't need sudo to run ethtool
Now vyatta user has permission through capability to run ethtool
-rw-r--r--lib/Vyatta/Qos/Util.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/Util.pm b/lib/Vyatta/Qos/Util.pm
index afd6aaf..02cbaca 100644
--- a/lib/Vyatta/Qos/Util.pm
+++ b/lib/Vyatta/Qos/Util.pm
@@ -293,7 +293,7 @@ sub ethtoolRate {
# Get rate of real device (ignore vlan)
$dev =~ s/\.[0-9]+$//;
- open( my $ethtool, "sudo /usr/sbin/ethtool $dev 2>/dev/null |" )
+ open( my $ethtool, "/usr/sbin/ethtool $dev 2>/dev/null |" )
or die "ethtool failed: $!\n";
# ethtool produces: