summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2002-12-12 09:31:10 +0000
committerWarner Losh <imp@FreeBSD.org>2002-12-12 09:31:10 +0000
commitc9e1bbfb911b3fa7ad41134f59423efcc102173c (patch)
tree15aa79b05e54553b7d748797dd23c2fc568fb0a3
parent7faa4ab46149e41ba45f9d0362f54ad05098f790 (diff)
Notes
-rw-r--r--etc/network.subr5
-rwxr-xr-xetc/pccard_ether2
-rw-r--r--etc/rc.d/network15
-rw-r--r--etc/rc.network2
4 files changed, 12 insertions, 2 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 4887042bdb3a..5e68a3d502a8 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -146,6 +146,11 @@ network_start()
dhcp_interfaces=""
for ifn in ${network_interfaces}; do
+ if ifconfig ${ifn} | grep -s UP, > /dev/null 2>&1; then
+ # Interface is already up, so ignore it.
+ continue;
+ fi
+
if [ -r /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn}
eval showstat_$ifn=1
diff --git a/etc/pccard_ether b/etc/pccard_ether
index 93c7ca522a8c..697b1c18fefb 100755
--- a/etc/pccard_ether
+++ b/etc/pccard_ether
@@ -65,7 +65,7 @@ esac
case ${startstop} in
[Ss][Tt][Aa][Rr][Tt] | '')
- if ifconfig ${interface} | grep -s UP,; then
+ if ifconfig ${interface} | grep -s UP, > /dev/null 2>&1; then
# Interface is already up, so ignore it.
exit 0
fi
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index 4887042bdb3a..5e68a3d502a8 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -146,6 +146,11 @@ network_start()
dhcp_interfaces=""
for ifn in ${network_interfaces}; do
+ if ifconfig ${ifn} | grep -s UP, > /dev/null 2>&1; then
+ # Interface is already up, so ignore it.
+ continue;
+ fi
+
if [ -r /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn}
eval showstat_$ifn=1
diff --git a/etc/rc.network b/etc/rc.network
index 3d6282f3442d..845dff4510ac 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -209,7 +209,7 @@ network_pass1() {
dhcp_interfaces=""
for ifn in ${network_interfaces}; do
- if ifconfig ${interface} | grep -s UP,; then
+ if ifconfig ${ifn} | grep -s UP, > /dev/null 2>&1; then
# Interface is already up, so ignore it.
continue;
fi