From 4255ba175bd7c3ccadc5bc894d00ccb844467067 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sun, 8 Jan 2012 16:24:03 -0800 Subject: 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 --- net/macvlan.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'net/macvlan.sh') diff --git a/net/macvlan.sh b/net/macvlan.sh index ccb28ea..86a659c 100644 --- a/net/macvlan.sh +++ b/net/macvlan.sh @@ -5,10 +5,7 @@ macvlan_depend() { - local x - x=$(_which ip) - [ -z "${X}" ] && return 1 - program $x + program ip after interface before dhcp macchanger } -- cgit v1.2.3