#!/bin/sh

# NOTE: Replace this script with one that starts your application.
# Your application should either disable the watchdog or continue
# to feed it.  You can use the two peekpoke commands below to 
# modify the reboot code at any time.  A reboot code of 170 
# indicates everything is normal.  Any other reboot code results
# in a system restore from the backup partition at boot time.
/usr/local/bin/ts7800ctl -d
/usr/local/bin/peekpoke 8 0xe8000808 127 > /dev/null
/usr/local/bin/peekpoke 8 0xe800080c 170 > /dev/null
echo "WDT disabled."
