From: Derrick Brashear Date: Thu, 22 May 2008 22:03:50 +0000 (+0000) Subject: DEVEL15-darwin-rc-common-does-set-minus-u-20080522 X-Git-Tag: openafs-devel-1_5_50~116 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=05102786485fc8ff5f0d9ab8b325722d4ffdd271;p=packages%2Fo%2Fopenafs.git DEVEL15-darwin-rc-common-does-set-minus-u-20080522 LICENSE IPL10 we need to cope with an unset variable (cherry picked from commit b26f133a56911c4a20e848cf85d40640aa37253a) --- diff --git a/src/afsd/afs.rc.darwin b/src/afsd/afs.rc.darwin index 40cb0ab88..008f5e259 100644 --- a/src/afsd/afs.rc.darwin +++ b/src/afsd/afs.rc.darwin @@ -11,6 +11,8 @@ # Updated to match standard service scripts # Phil Holland 6/11/04 +PRECACHE="$AFS_PRECACHE" + . /etc/rc.common # @@ -140,7 +142,7 @@ StartService() fs sysname $AFS_SYSNAME fi - if [ -n "$AFS_PRECACHE" ] ; then + if [ ! -z "$PRECACHE" ] ; then fs precache $AFS_PRECACHE fi