summaryrefslogtreecommitdiff
path: root/net/vlan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/vlan.sh')
-rw-r--r--net/vlan.sh14
1 files changed, 4 insertions, 10 deletions
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 <roy@marples.name>
# 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
}