]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
darwin-rc-common-does-set-minus-u-20080522
authorDerrick Brashear <shadow@dementia.org>
Thu, 22 May 2008 22:03:16 +0000 (22:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 22 May 2008 22:03:16 +0000 (22:03 +0000)
LICENSE IPL10

we need to cope with an unset variable

src/afsd/afs.rc.darwin

index 40cb0ab88e56555ed816ea07b991ffbd1c742f6c..008f5e2596fdc1c0f8ae9593b1ecb7d8b917badc 100644 (file)
@@ -11,6 +11,8 @@
 # Updated to match standard service scripts
 # Phil Holland <hollandp@umich.edu> 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