Index: ./src/afsd/afs.rc.darwin
===================================================================
RCS file: /cvs/openafs/src/afsd/afs.rc.darwin,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 afs.rc.darwin
--- ./src/afsd/afs.rc.darwin	2002/08/21 20:53:23	1.2.2.1
+++ ./src/afsd/afs.rc.darwin	2002/11/09 14:27:29
@@ -43,7 +43,7 @@
 
 # Need the commands ps, awk, kill, sleep
 PATH=${PATH}${PATH:+:}/sbin:/bin:/usr/bin
-if $KMODSTAT | grep -q openafs ; then
+if $KMODSTAT | perl -e 'exit not grep /openafs/, <>' ; then
 :
 else
 if [ -d $VICEETC/afs.kext ]; then
@@ -54,7 +54,7 @@
 	exit 1
 fi
 fi
-if $KMODSTAT | grep -q openafs ; then
+if $KMODSTAT | perl -e 'exit not grep /openafs/, <>' ; then
 :
 else
 	echo "AFS kernel extensions failed to initialize. Skipping AFS startup."
