net/ifconfig net/iproute2: support lookup ifconfig/ip dynamically

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger
2012-01-04 16:37:33 -05:00
parent 1771a83b92
commit f583030e3c
2 changed files with 11 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ _ip()
if [ -x /bin/ip ]; then
echo /bin/ip
else
echo /sbin/ip
which ip 2>/dev/null
fi
}