net: net.lo, lots of scripts
The program function in depend blocks is now able to search paths by itself. If passed multiple arguments or multiple calls, at least one of the arguments passed must be a program or a shell builtin (eg ip built into busybox). If a qualified path is specified, only that path will be checked, otherwise it will be checked as a builtin, then $PATH will be checked for the named binary (via type). Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
@@ -3,10 +3,7 @@
|
||||
|
||||
ethtool_depend()
|
||||
{
|
||||
local x
|
||||
x=$(_which ethtool)
|
||||
[ -z "$x" ] && return 1
|
||||
program $x
|
||||
program ethtool
|
||||
before interface
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user