--- rc.wireless.orig 2009-03-31 18:05:10.000000000 +0100 +++ rc.wireless.new 2009-03-31 18:05:26.000000000 +0100 @@ -82,7 +82,7 @@ #LC_ALL=C $IWPATH/iwconfig $1 2>&1 | \ # grep -Eiq "no wireless extensions|no such device" || return 0 #return 1 - if ! grep `echo ${1}: | cut -f 1 -d :`: /proc/net/wireless 1> /dev/null ; then + if ! grep -q `echo ${1}: | cut -f 1 -d :`: /proc/net/wireless > /dev/null 2>&1 ; then # no wireless interface return 1 else