From 61e05331d14a08fa909526fda15470a1ca4927dd Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 7 Jan 2012 15:41:43 -0600 Subject: net: make lookup of iproute2 dynamic The iproute2, macvlan and vlan modules had several possible hard coded paths for the iproute2 binary. Now we look for it in the path. --- net/vlan.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'net/vlan.sh') diff --git a/net/vlan.sh b/net/vlan.sh index 960cd09..ec30dd6 100644 --- a/net/vlan.sh +++ b/net/vlan.sh @@ -1,18 +1,12 @@ # Copyright (c) 2007-2008 Roy Marples # Released under the 2-clause BSD license. -_ip() -{ - if [ -x /bin/ip ]; then - echo /bin/ip - else - echo /sbin/ip - fi -} - vlan_depend() { - program $(_ip) + local x + x=$(_which ip) + [ -z "$x" ] && return 1 + program $x after interface before dhcp } -- cgit v1.2.3