aboutsummaryrefslogtreecommitdiff
path: root/net/macvlan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/macvlan.sh')
-rw-r--r--net/macvlan.sh14
1 files changed, 4 insertions, 10 deletions
diff --git a/net/macvlan.sh b/net/macvlan.sh
index 422268e4..ccb28ea7 100644
--- a/net/macvlan.sh
+++ b/net/macvlan.sh
@@ -3,18 +3,12 @@
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
-_ip()
-{
- if [ -x /bin/ip ]; then
- echo /bin/ip
- else
- echo /sbin/ip
- fi
-}
-
macvlan_depend()
{
- program $(_ip)
+ local x
+ x=$(_which ip)
+ [ -z "${X}" ] && return 1
+ program $x
after interface
before dhcp macchanger
}