# $Id: Common 599 2006-03-22 20:46:24Z jhealy $ # # Common configuration options for this batch of IPFailover scripts # # Name of the script that's executing SCRIPT=$(basename "$0") # Name of the config that's executing (leave blank for auto-guess) CONFIG="" # if no config name is given, use the IP address of the config directory if [ -z "${CONFIG}" ]; then CONFIG=$(cd `dirname "$0"`; pwd | sed -E -e 's/(.*)\/([^/]+)/\2/') fi export CONFIG # Log a message to syslog function logMessage() { logger -t IPFailover -p daemon.alert "${CONFIG}|${SCRIPT}: $1" # echo "${CONFIG}|${SCRIPT}: $1" }