aboutsummaryrefslogtreecommitdiff
path: root/etc/network.subr
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@FreeBSD.org>2004-12-05 09:51:48 +0000
committerRalf S. Engelschall <rse@FreeBSD.org>2004-12-05 09:51:48 +0000
commit18c3f40e9492f3fdf651dacb13e9608c9b4c7632 (patch)
treece519ab7605cb6045f67169e64f7be68c24ad50e /etc/network.subr
parent9edbeba781f5fbe89ec1dde08e02b5c4ff8a7926 (diff)
downloadsrc-18c3f40e9492f3fdf651dacb13e9608c9b4c7632.tar.gz
src-18c3f40e9492f3fdf651dacb13e9608c9b4c7632.zip
Use "ifconfig -l" instead of "list_network_interfaces all" in
ifnet_rename() to support situations where rc.conf's $network_interfaces variable is set to an explicit list of network interfaces (instead of the default "auto"). Using "list_network_interfaces all" resulted in using $network_interfaces for both interface _renaming_ and interface _configuration_ which obviously cannot work either before (if the new name is in $network_interfaces) or after (if the old name is in $network_interfaces) renaming the interface.
Notes
Notes: svn path=/head/; revision=138386
Diffstat (limited to 'etc/network.subr')
-rw-r--r--etc/network.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 07d2680681eb..33557fa875cd 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -256,7 +256,7 @@ ipx_down()
ifnet_rename()
{
- _ifn_list="`list_net_interfaces all`"
+ _ifn_list="`ifconfig -l`"
[ -z "$_ifn_list" ] && return 0
for _if in ${_ifn_list} ; do
eval _ifname=\$ifconfig_${_if}_name