fs sysname $AFS_SYSNAME
fi
+ if [ -n "$AFS_PRECACHE" ] ; then
+ fs precache $AFS_PRECACHE
+ fi
+
#
# Run package to update the disk
#
<key>IFPkgFlagRelocatable</key>
<false/>
<key>IFPkgFlagRestartAction</key>
- <string>RecommendedRestart</string>
+ <string>NoRestart</string>
<key>IFPkgFlagRootVolumeOnly</key>
<true/>
<key>IFPkgFlagUpdateInstalledLanguages</key>
Relocatable NO
Required NO
InstallOnly NO
-RequiresReboot YES
+RequiresReboot NO
InstallFat NO
rootVolumeOnly YES
# turn off execution of afssettings
chmod a-x config/afssettings
fi
+
+#here we should run tools which configure the client, and then if it's enabled:
+/Library/StartupItems/OpenAFS/OpenAFS start
+
fi
fi
+if [ -f /Library/StartupItems/OpenAFS/OpenAFS ]; then
+ /Library/StartupItems/OpenAFS/OpenAFS stop
+fi
#
# You can override that default behavior by setting OPTIONS to a specific set
# of flags.
-OPTIONS="-afsdb -stat 2000 -dcache 800 -daemons 3 -volumes 70 -dynroot -fakestat-all"
+OPTIONS="-chunksize 18 -afsdb -stat 5000 -dcache 800 -daemons 8 -volumes 70 -dynroot -fakestat-all"
# The default value for the client sysname (as returned by fs sysname) is
# determined during the kernel module build and is taken from the architecture
# fs setserverprefs <host> <rank>
#}
+# Amount to read ahead, or comment out to disable
+AFS_PRECACHE=5000
+
# If you want to always run some command after starting OpenAFS, you can put
# it here. Note that you cannot run multiple commands, even combined with &&
# or ; or similar shell meta-characters. If you want to run multiple
cp $CURDIR/CellServDB $PKGROOT/private/var/db/openafs/etc/CellServDB.master
echo grand.central.org > $PKGROOT/private/var/db/openafs/etc/ThisCell.sample
if [ $majorvers -ge 7 ]; then
- echo /afs:/var/db/openafs/cache:30000 > $PKGROOT/private/var/db/openafs/etc/cacheinfo.sample
+ echo /afs:/var/db/openafs/cache:100000 > $PKGROOT/private/var/db/openafs/etc/cacheinfo.sample
cp -RP $PKGROOT/Library/OpenAFS/Tools/etc/afssettings $PKGROOT/private/var/db/openafs/etc/config
cp settings.plist $PKGROOT/private/var/db/openafs/etc/config/settings.plist.orig
else
cp CellServDB.list $PKGRES
chown -R root${SEP}wheel $PKGRES
rm -rf $CURDIR/OpenAFS.pkg
-
- # once we have cm cleanup in 10.4 this can go
- if [ $majorvers -le 8 ]; then
- cat $RESSRC/OpenAFS.info|sed 's/RequiresReboot NO/RequiresReboot YES/'>$RESSRC/OpenAFS.info.new
- rm -f $RESSRC/OpenAFS.info
- mv $RESSRC/OpenAFS.info.new $RESSRC/OpenAFS.info
- fi
-
if [ $majorvers -ge 7 ]; then
echo $package -build -p $CURDIR/OpenAFS.pkg -f $PKGROOT -r $PKGRES \
-i OpenAFS.Info.plist -d OpenAFS.Description.plist