#!/bin/bash	
#email script
#IPZoner 2.2 [10/29/97] (C) 1997 Drago [Drago@Drago.com].

echo -e -n "Is it ok to email the following commands to the author?\nuname -a\n<Y/N> "
read INPUT
if [ $INPUT == "Y" ]; then
   OK=1
elif [ $INPUT == "y" ]; then
   OK=1
elif [ $INPUT == "N" ]; then
   OK=0
elif [ $INPUT == "n" ]; then
   OK=0
else
   OK=0
   echo -e "Incorrect answer!"
fi
if [ $OK == 1 ]; then
   echo -e -n "Thanks! Email is being sent...."
   echo "IPZoner compile complete - uname -a:" > .tmp.ipzoner.file
   uname -a >> .tmp.ipzoner.file
   mail Drago@Drago.com < .tmp.ipzoner.file
   rm -f .tmp.ipzoner.file
   echo "All done!"
else
   echo "Ok.  Email not sent."
fi
