diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-08 13:16:29 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-08 13:16:29 -0800 |
commit | c932d46780e4a22854191a66631c35cc5811de92 (patch) | |
tree | 54fbf640ecdf15499923d6e75e0e7b1820e466d3 /lib | |
parent | bcb18b96605e194cf8c186467b0a4d853695f75e (diff) | |
download | vyatta-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.pm | 2 |
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: |