From: Alexei Kosut Date: Thu, 15 May 2003 16:18:38 +0000 (+0000) Subject: STABLE12-darwin-use-perl-instead-of-grep-20030513 X-Git-Tag: openafs-stable-1_2_10~79 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c4feaa45b7e40aa6c945181b44a1899fd4f94e1e;p=packages%2Fo%2Fopenafs.git STABLE12-darwin-use-perl-instead-of-grep-20030513 FIXES 1361 perl is installed by default. grep isn't. use perl. (cherry picked from commit d4828d32266cbd6cd9786c5d6e7e6312925e691e) --- diff --git a/src/afsd/afs.rc.darwin b/src/afsd/afs.rc.darwin index a8240b39d..ed95303ab 100644 --- a/src/afsd/afs.rc.darwin +++ b/src/afsd/afs.rc.darwin @@ -43,7 +43,7 @@ fi # 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 @@ else 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."