#!/bin/bash
FILE="/www/www2/power/statuscron.txt"

if [ -s $FILE ];
then
if grep -q 'on' $FILE &> /dev/null; then 
  echo "it is on"
  /usr/sbin/etherwake -i eth1 01:44:8a:5b:2b:8c:5e
  rm $FILE
fi
if grep -q 'off' $FILE &> /dev/null; then                   
  echo "it is off"
  rm $FILE
fi
fi
