Fix an issue that 127/8 is not configured when $ifconfig_DEFAULT is not empty.

Spotted by:	ume
This commit is contained in:
Hiroki Sato 2011-10-23 05:56:59 +00:00
parent 1e26c5043c
commit 089ff57221
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226649

View File

@ -532,7 +532,7 @@ ipv4_up()
# Add 127.0.0.1/8 to lo0 unless otherwise specified.
if [ "${_if}" = "lo0" ]; then
ifconfig_args=`ifconfig_getargs ${_if}`
ifconfig_args=`get_if_var ${_if} ifconfig_IF`
if [ -z "${ifconfig_args}" ]; then
ifconfig ${_if} inet 127.0.0.1/8 alias
fi