summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-interfaces.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl
index cbb6abf6..90a4e0f9 100755
--- a/scripts/vyatta-interfaces.pl
+++ b/scripts/vyatta-interfaces.pl
@@ -544,7 +544,7 @@ sub show_config_path {
sub get_ethtool {
my $dev = shift;
- open( my $ethtool, "sudo /usr/sbin/ethtool $dev 2>/dev/null |" )
+ open( my $ethtool, "-|", "sudo /usr/sbin/ethtool $dev 2>/dev/null" )
or die "ethtool failed: $!\n";
# ethtool produces: