#!/bin/sh

echo
echo
echo "Your DynDNS with Inadyn Version 1.96.2 has been successfully installed."
echo "You will need to create the inadyn.conf file from the DynDNS link using the wizard."
echo "You may run the wizard whenever you add new hosts or make changes. After you have"
echo "created the inadyn.conf you will need to reboot the router to start inadyn"
echo
echo 
echo "Please note that you may only update up to 10 hosts at a time"
echo "Selecting more than 10 will cause update failure for all hosts"
echo
echo "Note: The installation of this package removes all instances of EZ Ipupdate"
echo 
echo
echo "Enjoy!"
chmod +x /etc/init.d/S65inadyn
if [ -f /www/cgi-bin/webif/network-ez-ipupdate.sh ]
then
   rm /www/cgi-bin/webif/network-ez-ipupdate.sh
fi
if [ -f /www/cgi-bin/webif/network-logread-ez-ipupdate.sh ]
then
   rm /www/cgi-bin/webif/network-logread-ez-ipupdate.sh
fi
if [ -f /www/cgi-bin/webif/network-logread-ez-ipupdate_frame.sh ]
then
   rm /www/cgi-bin/webif/network-logread-ez-ipupdate_frame.sh
fi
ipkg install curl
echo "You will be brought to the DynDNS Inadyn 1.96.2 Updater in just a moment"
echo '<meta http-equiv="refresh" content="3; URL=/cgi-bin/webif/dyndns.sh" />'
exit 0
