diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-08 13:11:14 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-08 13:11:14 -0800 |
commit | eed00988fc2ad51faf4f3475193cff45f552fe59 (patch) | |
tree | 414e560bdbb809edd1036844de31f84da16b9159 | |
parent | 5d65c72b5de2cb1b7bb698cca6be833b7c194796 (diff) | |
download | vyatta-op-eed00988fc2ad51faf4f3475193cff45f552fe59.tar.gz vyatta-op-eed00988fc2ad51faf4f3475193cff45f552fe59.zip |
Fix path to ethtool
In Squeeze, ethtool moved from /usr/sbin to /sbin
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" |