aboutsummaryrefslogtreecommitdiff
path: root/net/iproute2.sh
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-01-08 16:24:03 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2012-01-08 16:24:10 -0800
commit4255ba175bd7c3ccadc5bc894d00ccb844467067 (patch)
tree40965581526479833b09054c5d9dc028348536b9 /net/iproute2.sh
parentd02d3af02e4254b04949de546c5d53af82cc2fc2 (diff)
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>
Diffstat (limited to 'net/iproute2.sh')
-rw-r--r--net/iproute2.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 16d9a604..9b89352c 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -3,10 +3,7 @@
iproute2_depend()
{
- local x
- x=$(_which ip)
- [ -z "$x" ] && return 1
- program $x
+ program ip
provide interface
after ifconfig
}