aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.network
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 /etc/rc.network
parent7faa4ab46149e41ba45f9d0362f54ad05098f790 (diff)
o redirect the grep to /dev/null
o use ifn rather than interface in rc.network o merge into rc.d/network1 Approved by: (re blanket)
Notes
Notes: svn path=/head/; revision=107774
Diffstat (limited to 'etc/rc.network')
-rw-r--r--etc/rc.network2
1 files changed, 1 insertions, 1 deletions
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