From d02d3af02e4254b04949de546c5d53af82cc2fc2 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 7 Jan 2012 15:47:48 -0600 Subject: [PATCH] net: make lookup of ethtool dynamic The ethtool module checked in two places for the ethtool binary; now we look for it in the path. --- net/ethtool.sh | 9 ++++----- 1 file 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 }