#!/bin/bash

# The important parts of the checker are XXX'ed. But if you read the manpage of 'curl'
# at least, you'll get enough skill to fill them up with appropriate contents, hihi


curl 'http://hamradio.czweb.org/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX' 2>/dev/null \
| grep 'XXXXXXXXXXXXXXXXXXXXXXXXXX' > /dev/null

if [ "$?" == "0" ]
 then echo "Je tam a tak to ma bejt."
 else 
  echo "Neni tam, ale to hbite opravime ..."
  curl -d "XXXXXXXXXXXXXXXXXXXXXXX" http://hamradio.czweb.org/XXXXXXXXXXXXXXXXXXX > /dev/null
fi 

# Happy nuke!