summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-08 13:16:29 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-08 13:16:29 -0800
commitc932d46780e4a22854191a66631c35cc5811de92 (patch)
tree54fbf640ecdf15499923d6e75e0e7b1820e466d3 /lib
parentbcb18b96605e194cf8c186467b0a4d853695f75e (diff)
downloadvyatta-cfg-qos-c932d46780e4a22854191a66631c35cc5811de92.tar.gz
vyatta-cfg-qos-c932d46780e4a22854191a66631c35cc5811de92.zip
Fix path to ethtool
ethtool moved in Debian Squeeze to /sbin/ethtool
Diffstat (limited to 'lib')
-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 02cbaca..6230a1d 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, "/usr/sbin/ethtool $dev 2>/dev/null |" )
+ open( my $ethtool, '-|', "/sbin/ethtool $dev 2>/dev/null" )
or die "ethtool failed: $!\n";
# ethtool produces: