aboutsummaryrefslogtreecommitdiff
path: root/net/ethtool.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/ethtool.sh')
-rw-r--r--net/ethtool.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/net/ethtool.sh b/net/ethtool.sh
index fecb7b91..ba5719d1 100644
--- a/net/ethtool.sh
+++ b/net/ethtool.sh
@@ -1,13 +1,12 @@
# Copyright (c) 2011 by Gentoo Foundation
# Released under the 2-clause BSD license.
-_ethtool() {
- echo /usr/sbin/ethtool
-}
-
ethtool_depend()
{
- program $(_ethtool)
+ local x
+ x=$(_which ethtool)
+ [ -z "$x" ] && return 1
+ program $x
before interface
}