summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2012-12-16 20:01:27 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2012-12-16 20:01:27 +0000
commitfb16d4bb01a46b29e26b144556e485b7d378f485 (patch)
treeb3c3fd61c931061616558dbe9439c2f54f8f0c1d /distrib
parent5908e5e4368a98c4ebc176e105c5a9c7f116500c (diff)
use grep -q instead of redirecting to /dev/null
ok krw@ halex@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 255706e085c..2c8ef2b84f3 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.672 2012/11/22 17:57:22 ajacoutot Exp $
+# $OpenBSD: install.sub,v 1.673 2012/12/16 20:01:26 rpe Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -816,7 +816,7 @@ ieee80211_config() {
v4_config() {
local _ifs=$1 _name=$2 _hn=$3 _prompt _addr _mask
- if ifconfig $_ifs | grep 'groups:.* dhcp' >/dev/null 2>&1; then
+ if ifconfig $_ifs | grep -q 'groups:.* dhcp'; then
_addr=dhcp
else
set -- $(v4_info $_ifs)