diff options
-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: |