From c932d46780e4a22854191a66631c35cc5811de92 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 8 Nov 2010 13:16:29 -0800 Subject: Fix path to ethtool ethtool moved in Debian Squeeze to /sbin/ethtool --- lib/Vyatta/Qos/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Vyatta/Qos') 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: -- cgit v1.2.3