diff options
author | imp <imp@FreeBSD.org> | 2002-12-13 23:36:31 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-12-13 23:36:31 +0000 |
commit | c0586fbb4fe74b933efc1631a397e510eb5e2319 (patch) | |
tree | de5390697377dfaf8d2d8068e1053ba5b41e1dfb /etc | |
parent | a109c1e8f852f9627f28cc3d16bc92a8c99793c5 (diff) | |
download | FreeBSD-src-c0586fbb4fe74b933efc1631a397e510eb5e2319.zip FreeBSD-src-c0586fbb4fe74b933efc1631a397e510eb5e2319.tar.gz |
o Don't consider LOOPBACK devices as configured...
Diffstat (limited to 'etc')
-rw-r--r-- | etc/network.subr | 3 | ||||
-rw-r--r-- | etc/rc.d/network1 | 3 | ||||
-rw-r--r-- | etc/rc.network | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/etc/network.subr b/etc/network.subr index 5e68a3d..fba88d1 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -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 diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 index 5e68a3d..fba88d1 100644 --- a/etc/rc.d/network1 +++ b/etc/rc.d/network1 @@ -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 diff --git a/etc/rc.network b/etc/rc.network index 845dff4..d3d75d6 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -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 |