#! /bin/bash

# A bourne shell script which simply mails root of any smoke-detector
# related activity.  However, this can be modified to do almost anything you
# have at your disposal.  It can make the computer beep (WOW!) or e-mail your
# phone or pager, too...

if test $# -ne 1 
then
	echo "Syntax:"
	echo "	$0 X"
	echo "Where X is the ZONE (1-5) activated"
	exit 
	exit
fi

if test $1 = "1" -o $1 = "2" -o $1 = "3" -o $1 = "4" -o $1 = "5"
then
	echo "FIRE ALERT ZONE $1 `date`" | mail -s "Phantom.Cop FIRE ALERT" root
fi

