From b26f133a56911c4a20e848cf85d40640aa37253a Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 22 May 2008 22:03:16 +0000 Subject: [PATCH] darwin-rc-common-does-set-minus-u-20080522 LICENSE IPL10 we need to cope with an unset variable --- src/afsd/afs.rc.darwin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5