summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-03-19 18:16:25 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-03-19 18:16:25 -0700
commitff77155be360216289e1e73af50dc4b82383cc68 (patch)
treea5fcac330e9839c3d5be154af0b7ca2ccb67087b
parentc1b530e7bfa5c33a8f51f634f906d2412f187e90 (diff)
downloadvyatta-cfg-qos-ff77155be360216289e1e73af50dc4b82383cc68.tar.gz
vyatta-cfg-qos-ff77155be360216289e1e73af50dc4b82383cc68.zip
Wait for the eternal freeze to lift
Revert "silence ethtool messages when auto bandwidth used" This reverts commit c1b530e7bfa5c33a8f51f634f906d2412f187e90.
-rw-r--r--scripts/VyattaQosUtil.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/VyattaQosUtil.pm b/scripts/VyattaQosUtil.pm
index 145a627..476d651 100644
--- a/scripts/VyattaQosUtil.pm
+++ b/scripts/VyattaQosUtil.pm
@@ -198,10 +198,11 @@ sub interfaceRate {
## ethtoolRate("eth0")
# Fetch actual rate using ethtool and format to valid tc rate
sub ethtoolRate {
- my $dev = shift;
+ my ($dev) = @_;
my $rate = undef;
- open(my $ethtool, "/usr/sbin/ethtool $dev 2>&1 |")
+ open my $ethtool, "-|"
+ or exec 'sudo', 'ethtool', $dev
or die "ethtool failed: $!\n";
# ethtool produces: