diff options
author | rse <rse@FreeBSD.org> | 2004-12-05 09:51:48 +0000 |
---|---|---|
committer | rse <rse@FreeBSD.org> | 2004-12-05 09:51:48 +0000 |
commit | 68bef2dca52d3201b5d429a1ae55e7936877c49a (patch) | |
tree | ce519ab7605cb6045f67169e64f7be68c24ad50e /etc/network.subr | |
parent | 638d03f597a808c846272d1edd5b077751f8da9d (diff) | |
download | FreeBSD-src-68bef2dca52d3201b5d429a1ae55e7936877c49a.zip FreeBSD-src-68bef2dca52d3201b5d429a1ae55e7936877c49a.tar.gz |
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.
Diffstat (limited to 'etc/network.subr')
-rw-r--r-- | etc/network.subr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/network.subr b/etc/network.subr index 07d2680..33557fa 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 |