# # Watcher revsion # PRODUCT=WatcherV1 #REVISION=1.4beta #REVISION=1.4RC1 REVISION=1.4RC2 # Specify the modules TO BE STARTED # # Note: If 'WatchMX' is used its companion 'WatchMB' # is automatically started by WatchMX # No need to include 'WatchMB' here # # Example: # MODULES="WatchLG WatchMX" #----------------------------------------- MODULES="WatchLG WatchMX WatchWB GeoTrack" # # Set 'USE_RAMDISK' to a # _NON-EMPTY_STRING_ # to use it # Leave it blank to disable it. # USE_RAMDISK=UhhYeah # Configure RAM disk size in bytes; e.g. '20m' for 20 mega-bytes # size can have multipliers for: # - {k,K} (kilobytes), # - {m,M} (megabytes), # - {g,G} (gigabytes) RDSIZE=20m # Copy some frequently used tools to the RAM disk at $POOL/bin for speed-up USE_RDCOPIES=UhhYeah # List of RAMDisk copies to be used in PATH RDCOPIES='awk grep date ipset sqlite3' # Path where common tools are linked by the master and modules # Should be included in the PATH variable for 'root' TOOLS=' Freeme Huntip MyRouter MyFritzBox Blacklist Whitelist Procrate Attackrate Trace Masterpath Watcher-Report Refresh Module Dynload Rules Jump Looprate Totalnodes ' TOOLS_LINK=/usr/local/sbin # Base directory for the FIFOs (named pipes) # # -------------------------------------------------------------- # # NOTE: System loggers (rsyslog & syslog-ng as well) are # # _not_ permitted to write outside the standard log # # directory '/var/log' by SElinux rules. # # There is no other choice here to place them in # # /var/log/... # # -------------------------------------------------------------- FIFO_BASE="/var/log/.pipes" #################################################### ### Do not change anything below! ################## #################################################### # Export some important stuff # Be careful when changing this! export PRODUCT REVISION TOOLS_LINK FIFO_BASE pathmunge() { case ":${PATH}:" in *:"$1":*) ;; *) if [ "$2" = "after" ] then PATH=$PATH:$1 else PATH=$1:$PATH fi ;; esac } # Link APIs into PATH ... if [[ -z "$HAVE_AWKPATH" ]] then if [ -z "$AWKPATH" ] then AWKPATH=$MASTER_PATH/api/awk else AWKPATH=$MASTER_PATH/api/awk:$AWKPATH fi export HAVE_AWKPATH=set fi if [[ -z "$HAVE_BASHLIB" ]] then if [ -z "$BASHLIB" ] then BASHLIB=$MASTER_PATH/api/bash else BASHLIB=$MASTER_PATH/api/bash:$BASHLIB fi export HAVE_BASHLIB=set fi if [[ -z "$HAVE_PATHSET" ]] then pathmunge $TOOLS_LINK pathmunge $MASTER_PATH/bin pathmunge $BASHLIB pathmunge $AWKPATH # PATH=$AWKPATH:$BASHLIB:$MASTER_PATH/bin:$TOOLS_LINK:$PATH if [ -z "$POOLBIN" ] then pathmunge $POOLBIN # PATH=$POOLBIN:$AWKPATH:$BASHLIB:$MASTER_PATH/bin:$TOOLS_LINK:$PATH fi export HAVE_PATHSET=set fi export PATH AWKPATH BASHLIB