summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-08 13:11:14 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-08 13:11:14 -0800
commiteed00988fc2ad51faf4f3475193cff45f552fe59 (patch)
tree414e560bdbb809edd1036844de31f84da16b9159
parent5d65c72b5de2cb1b7bb698cca6be833b7c194796 (diff)
downloadvyatta-op-eed00988fc2ad51faf4f3475193cff45f552fe59.tar.gz
vyatta-op-eed00988fc2ad51faf4f3475193cff45f552fe59.zip
Fix path to ethtool
In Squeeze, ethtool moved from /usr/sbin to /sbin
-rwxr-xr-xscripts/vyatta-identify-interface.pl2
-rwxr-xr-xscripts/vyatta-show-interfaces2
-rw-r--r--templates/show/interfaces/ethernet/node.tag/physical/node.def2
-rw-r--r--templates/show/interfaces/ethernet/node.tag/statistics/node.def2
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"