From d3ccbdb5a94e61e84bdc2d82d450ee8a5e4a22f4 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 9 Aug 2010 20:01:15 -0500 Subject: allow ip to be in /sbin or /bin This makes it possible for the "ip" program in iproute2 to be installed in /sbin or /bin. --- net/iproute2.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'net') diff --git a/net/iproute2.sh b/net/iproute2.sh index 906a45e0..09a72d73 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -1,9 +1,18 @@ # Copyright (c) 2007-2008 Roy Marples # All rights reserved. Released under the 2-clause BSD license. +_ip() +{ + if [ -x /bin/ip ]; then + echo /bin/ip + else + echo /sbin/ip + fi +} + iproute2_depend() { - program /sbin/ip + program $(_ip) provide interface after ifconfig } -- cgit v1.2.3