From eed00988fc2ad51faf4f3475193cff45f552fe59 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 8 Nov 2010 13:11:14 -0800 Subject: Fix path to ethtool In Squeeze, ethtool moved from /usr/sbin to /sbin --- scripts/vyatta-identify-interface.pl | 2 +- scripts/vyatta-show-interfaces | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/vyatta-identify-interface.pl b/scripts/vyatta-identify-interface.pl index 0170b68..1cfdb36 100755 --- a/scripts/vyatta-identify-interface.pl +++ b/scripts/vyatta-identify-interface.pl @@ -41,7 +41,7 @@ if ($cpid == 0) { # child print "Interface $intf should be blinking now.\n"; print "Press Enter to stop...\n"; - exec("/usr/sbin/ethtool -p $intf"); + exec("/sbin/ethtool -p $intf"); # not reachable exit 0; } else { diff --git a/scripts/vyatta-show-interfaces b/scripts/vyatta-show-interfaces index b49dbf7..1b0a156 100755 --- a/scripts/vyatta-show-interfaces +++ b/scripts/vyatta-show-interfaces @@ -106,7 +106,7 @@ _show_itf_stats () _show_itf_physical () { for eth ; do - sudo /usr/sbin/ethtool $eth + /sbin/ethtool $eth echo done } -- cgit v1.2.3