anchor.diff:  ############################################################
   # TODO: add more linux cases, not all are handled
   
  -if [[ $OSTYPE == darwin* ]]; then
  -  # Mac OS X
  -  INSTALLERURL="http://software.bigfix.com/download/bes/95/BESAgent-9.5.1.9-BigFix_MacOSX10.7.pkg"
  -  INSTALLDIR="/tmp"
  -  INSTALLER="/tmp/BESAgent.pkg"
  -  
  +# 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://$1:52311/bfmirror/downloads/
  +  >> $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
  
positive.code:   >> $INSTALLDIR/clientsettings.cfg echo _BESClient_Download_UtilitiesCacheLimitMB=500
    >> $INSTALLDIR/clientsettings.cfg echo _BESClient_Download_DownloadsCacheLimitMB=5000
    >> $INSTALLDIR/clientsettings.cfg echo _BESClient_Download_MinimumDiskFreeMB=2000
  else
    # For most Linux:
    INSTALLDIR="/etc/opt/BESClient"
  
negative.code: # http://www.tldp.org/LDP/abs/html/comparison-ops.html
  if [ -n "$1" ]; then
    MASTHEADURL="http://$1:52311/masthead/masthead.afxm"
    RELAYFQDN=$1
  fi
  
  # check for x32bit or x64bit OS
  