anchor.diff:    >> $INSTALLDIR/clientsettings.cfg echo _BESClient_Download_UtilitiesCacheLimitMB=500
     >> $INSTALLDIR/clientsettings.cfg echo _BESClient_Download_DownloadsCacheLimitMB=5000
     >> $INSTALLDIR/clientsettings.cfg echo _BESClient_Download_MinimumDiskFreeMB=2000
  +fi
  +
  +if [[ $OSTYPE == darwin* ]]; then
  +  # Mac OS X
  +  INSTALLERURL="http://software.bigfix.com/download/bes/95/BESAgent-9.5.1.9-BigFix_MacOSX10.7.pkg"
  +  INSTALLER="/tmp/BESAgent.pkg"
   else
     # For most Linux:
     INSTALLDIR="/etc/opt/BESClient"
  
positive.code: ### start the BigFix client (required for most linux dist)
  # if file `/etc/init.d/besclient` exists
  if [ -f /etc/init.d/besclient ]; then
    /etc/init.d/besclient start
  fi
  
  
negative.code: ############################################################
  # TODO: add more linux cases, not all are handled
  
  # set INSTALLDIR for OS X - other OS options will change this variable
  #   This will also be used to create the default clientsettings.cfg file
  INSTALLDIR="/tmp"
  
  # if clientsettings.cfg exists in CWD copy it
  if [ -f clientsettings.cfg ] && [ ! -f $INSTALLDIR/clientsettings.cfg ] ; then
    cp clientsettings.cfg $INSTALLDIR/clientsettings.cfg
  fi
  
  if [ ! -f $INSTALLDIR/clientsettings.cfg ] ; then
    # create clientsettings.cfg file
    echo -n > $INSTALLDIR/clientsettings.cfg
    >> $INSTALLDIR/clientsettings.cfg echo _BESClient_RelaySelect_FailoverRelay=http://$RELAYFQDN:52311/bfmirror/downloads/
    >> $INSTALLDIR/clientsettings.cfg echo _BESClient_Resource_StartupNormalSpeed=1
    >> $INSTALLDIR/clientsettings.cfg echo _BESClient_Download_RetryMinutes=1
    >> $INSTALLDIR/clientsettings.cfg echo _BESClient_Resource_WorkIdle=20
  