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:
Robin H. Johnson
2012-01-08 16:24:03 -08:00
parent d02d3af02e
commit 4255ba175b
10 changed files with 36 additions and 42 deletions

View File

@@ -4,7 +4,7 @@
bridge_depend()
{
before interface macnet
program /sbin/brctl
program brctl
}
_config_vars="$_config_vars bridge bridge_add brctl"