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:
parent
61e05331d1
commit
d02d3af02e
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user