#!/bin/bash # # JI1BQW regular id script # # Please use this with your own risk. # # 12/17/2005 # [ -z "$SCRIPT" ] && SCRIPT=/home/irlp/scripts source $SCRIPT/common-functions.sh # Make sure we are user repeater!!! if [ `/usr/bin/whoami` != "repeater" ] ; then echo This program must be run as user REPEATER! exit 1 fi # Make sure we have sourced the environment file if [ "$RUN_ENV" != "TRUE" ] ; then echo "You must source the environment file first. Do this by running:" echo ". /home/irlp/custom/environment" exit 1 fi while [ 1 ]; do sleep 1200 if [ ! -f "$LOCAL"/enable ] ; then continue fi if [ -f "$LOCAL"/active ] ; then continue fi date killall ispeaker >&/dev/null 2>&1 killall ispeaker_PCI >&/dev/null 2>&1 killall sfswrapper >&/dev/null 2>&1 $SCRIPT/wavplay custom/my_id done exit 0