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 +- templates/show/interfaces/ethernet/node.tag/physical/node.def | 2 +- templates/show/interfaces/ethernet/node.tag/statistics/node.def | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 } diff --git a/templates/show/interfaces/ethernet/node.tag/physical/node.def b/templates/show/interfaces/ethernet/node.tag/physical/node.def index 7723946..2c22191 100644 --- a/templates/show/interfaces/ethernet/node.tag/physical/node.def +++ b/templates/show/interfaces/ethernet/node.tag/physical/node.def @@ -1,3 +1,3 @@ help: Show physical device information for specified ethernet interface allowed: "" -run: /usr/sbin/ethtool "$4"; /usr/sbin/ethtool -i "$4" +run: /sbin/ethtool "$4"; /sbin/ethtool -i "$4" diff --git a/templates/show/interfaces/ethernet/node.tag/statistics/node.def b/templates/show/interfaces/ethernet/node.tag/statistics/node.def index 6dae4f3..db07bf1 100644 --- a/templates/show/interfaces/ethernet/node.tag/statistics/node.def +++ b/templates/show/interfaces/ethernet/node.tag/statistics/node.def @@ -1,3 +1,3 @@ help: Show physical device statistics for specified ethernet interface allowed: "" -run: sudo /usr/sbin/ethtool -S "$4" +run: sudo /sbin/ethtool -S "$4" -- cgit v1.2.3