o Don't consider LOOPBACK devices as configured...

This commit is contained in:
imp 2002-12-13 23:36:31 +00:00
parent a109c1e8f8
commit c0586fbb4f
3 changed files with 6 additions and 3 deletions

View File

@ -146,7 +146,8 @@ network_start()
dhcp_interfaces=""
for ifn in ${network_interfaces}; do
if ifconfig ${ifn} | grep -s UP, > /dev/null 2>&1; then
_up=`ifconfig ${ifn} | head -1 | grep -v LOOPBACK | grep UP,`
if [ "$_up" != "" ]; then
# Interface is already up, so ignore it.
continue;
fi

View File

@ -146,7 +146,8 @@ network_start()
dhcp_interfaces=""
for ifn in ${network_interfaces}; do
if ifconfig ${ifn} | grep -s UP, > /dev/null 2>&1; then
_up=`ifconfig ${ifn} | head -1 | grep -v LOOPBACK | grep UP,`
if [ "$_up" != "" ]; then
# Interface is already up, so ignore it.
continue;
fi

View File

@ -209,7 +209,8 @@ network_pass1() {
dhcp_interfaces=""
for ifn in ${network_interfaces}; do
if ifconfig ${ifn} | grep -s UP, > /dev/null 2>&1; then
_up=`ifconfig ${ifn} | head -1 | grep -v LOOPBACK | grep UP,`
if [ "$_up" != "" ]; then
# Interface is already up, so ignore it.
continue;
fi