diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-24 16:10:23 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-24 16:10:23 -0700 |
commit | 660670e2232546c94da9785757c2c506349be6f5 (patch) | |
tree | fd48704fe2000254da7205111860f0eebce9b3ff | |
parent | f279fa4d97c0215af8aa9545c08e3f987c1524fa (diff) | |
parent | 9aae78f8dff2d6e26feeef01ba1cb64201039b77 (diff) | |
download | vyatta-op-660670e2232546c94da9785757c2c506349be6f5.tar.gz vyatta-op-660670e2232546c94da9785757c2c506349be6f5.zip |
Merge branch 'islavista' into jenner
-rwxr-xr-x | scripts/vyatta-show-interfaces | 10 | ||||
-rw-r--r-- | templates/show/interfaces/ethernet/node.tag/statistics/node.def | 3 |
2 files changed, 5 insertions, 8 deletions
diff --git a/scripts/vyatta-show-interfaces b/scripts/vyatta-show-interfaces index 8be076f..b49dbf7 100755 --- a/scripts/vyatta-show-interfaces +++ b/scripts/vyatta-show-interfaces @@ -105,12 +105,10 @@ _show_itf_stats () _show_itf_physical () { - if type -t ethtool &>/dev/null ; then - for eth ; do - sudo ethtool $eth - echo - done - fi + for eth ; do + sudo /usr/sbin/ethtool $eth + echo + done } _usage () diff --git a/templates/show/interfaces/ethernet/node.tag/statistics/node.def b/templates/show/interfaces/ethernet/node.tag/statistics/node.def index 0c66031..5414715 100644 --- a/templates/show/interfaces/ethernet/node.tag/statistics/node.def +++ b/templates/show/interfaces/ethernet/node.tag/statistics/node.def @@ -1,4 +1,3 @@ help: Show physical device statistics for specified ethernet interface allowed: "" -run: ethtool -S "$4" - +run: /usr/sbin/ethtool -S "$4" |