Revert "net/ifconfig net/iproute2: support lookup ifconfig/ip dynamically"
This reverts commit f583030e3c
.
The previous commit did not account for the case of not having iproute2
installed.
Reported-by: Duncan <1i5t5.duncan@cox.net>
X-Gentoo-Bug: 397875
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=397875
This commit is contained in:
parent
982ac38f35
commit
84aa4ba818
@ -1,18 +1,9 @@
|
||||
# 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 $(_ifconfig)
|
||||
program /sbin/ifconfig
|
||||
provide interface
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@ _ip()
|
||||
if [ -x /bin/ip ]; then
|
||||
echo /bin/ip
|
||||
else
|
||||
which ip 2>/dev/null
|
||||
echo /sbin/ip
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user