diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-01-04 16:37:33 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-01-04 16:38:11 -0500 |
commit | f583030e3cbfb1d2f30af3ebd00427e12fe66b70 (patch) | |
tree | 7f0222d4d6203d88dbce713825c1d73ede089ed5 /net/ifconfig.sh.Linux.in | |
parent | 1771a83b92e3ff7b05742cf754a67c1e258472d1 (diff) |
net/ifconfig net/iproute2: support lookup ifconfig/ip dynamically
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'net/ifconfig.sh.Linux.in')
-rw-r--r-- | net/ifconfig.sh.Linux.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in index 80a0b987..2ac63fd4 100644 --- a/net/ifconfig.sh.Linux.in +++ b/net/ifconfig.sh.Linux.in @@ -1,9 +1,18 @@ # Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Released under the 2-clause BSD license. +_ifconfig() +{ + if [ -x /bin/ifconfig ]; then + echo /bin/ifconfig + else + which ifconfig 2>/dev/null + fi +} + ifconfig_depend() { - program /sbin/ifconfig + program $(_ifconfig) provide interface } |