#!/bin/bash

UPDATER="lastupdateU18"

clear
cd /root
if [ -e "$UPDATER" ]
then
 rm $UPDATER
fi

echo "This update utility goes to IncrediblePBX.com to retrieve the latest updates."
echo "We test updates before release, but NO WARRANTY EXPRESS OR IMPLIED IS PROVIDED."
echo "Recommended (but optional) Calendar year update license is \$20 per machine."
echo "To sign up and make payment using a credit card, go to: http://nerd.bz/QwQkYO"
echo " "
read -p "To proceed solely at your own risk, press Enter. Otherwise, Ctrl-C to abort."
echo " "
echo -n "Retrieving... "
wget -q http://incrediblepbx.com/$UPDATER.tar.gz
tar zxvf $UPDATER.tar.gz
rm $UPDATER.tar.gz
/root/$UPDATER
rm $UPDATER
