summaryrefslogtreecommitdiff
path: root/net/iproute2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/iproute2.sh')
-rw-r--r--net/iproute2.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 906a45e..09a72d7 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -1,9 +1,18 @@
# 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
+}
+
iproute2_depend()
{
- program /sbin/ip
+ program $(_ip)
provide interface
after ifconfig
}