aboutsummaryrefslogtreecommitdiff
path: root/net/ifconfig.sh.Linux.in
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-01-06 14:51:43 -0600
committerWilliam Hubbs <williamh@gentoo.org>2012-01-06 14:51:43 -0600
commit84aa4ba8182ffe69ddaa81e94e53a63af155fc1b (patch)
treeebec3461612f0779a1925ac6394db9c6ffbc9c12 /net/ifconfig.sh.Linux.in
parent982ac38f35b5f0c7d80341783e74f803c177e8dd (diff)
Revert "net/ifconfig net/iproute2: support lookup ifconfig/ip dynamically"
This reverts commit f583030e3cbfb1d2f30af3ebd00427e12fe66b70. 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
Diffstat (limited to 'net/ifconfig.sh.Linux.in')
-rw-r--r--net/ifconfig.sh.Linux.in11
1 files changed, 1 insertions, 10 deletions
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in
index 2ac63fd4..80a0b987 100644
--- a/net/ifconfig.sh.Linux.in
+++ b/net/ifconfig.sh.Linux.in
@@ -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
}