diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-20 17:03:01 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-20 17:08:03 -0700 |
commit | 900ce84ea8a12b98c1fc276161504946166950dc (patch) | |
tree | 52982373e16b0997f0466a7a42a34165e497cf7c | |
parent | 56c205f7070a541555c81bb8546d0a7ba4359e60 (diff) | |
download | vyatta-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.pm | 2 |
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: |