-while true; do
- echo Connecting sendmail and proxy servers via zooty.
- ssh -i $HOME/.ssh/id_dsa_fred -2 -N -v -L 14008:localhost:25 fred@zooty.koeritz.com
- bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh $soundfile
+##############
+
+# provides a list of properly formatted tunnels for ssh to create. if this list
+# is empty, then we do nothing.
+# TUNNEL_LIST=()
+
+# set this to the hostname that will be providing the tunnel. this is
+# usually a remote system.
+USER_PLUS_HOST=""
+
+# set this to your key file, plus the -i flag, such as:
+# SECURITY_KEY="-i $HOME/.ssh/id_rsa"
+SECURITY_KEY=""
+
+##############
+
+#hmmm:move to fred configs!
+TUNNEL_LIST+=(-L 14008:localhost:25)
+USER_PLUS_HOST="fred@serene.feistymeow.org"
+SECURITY_KEY="-i $HOME/.ssh/id_dsa_fred"
+
+##############
+
+# how often to play sounds when reconnecting.
+NOISE_PERIOD=180
+
+# when we last played a sound.
+LAST_SOUND_TIME=0
+
+play_sound_periodically()
+{
+ CURRENT_TIME=$(date +"%s")
+ if (( $CURRENT_TIME - $LAST_SOUND_TIME >= $NOISE_PERIOD )); then
+ echo playing sound now.
+ bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh $soundfile &>/dev/null </dev/null &