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.
This commit is contained in:
William Hubbs 2012-01-07 15:47:48 -06:00
parent 61e05331d1
commit d02d3af02e

View File

@ -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
}