From 9aae78f8dff2d6e26feeef01ba1cb64201039b77 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 24 Oct 2008 15:51:22 -0700 Subject: Fix references to ethtool Since ethtool is in /usr/sbin, it is not in the command search path of admin user, so a fully qualify path. Bugfix 3832 --- scripts/vyatta-show-interfaces | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'scripts') 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 () -- cgit v1.2.3