#!/bin/sh
#Squeezing Tarkan Installer Script
#
#Version v1.0 - 08/06/2010
#
#This script is written by and maintained by Tarkan Akdam ( www.tarkan.info)
#
#This script is an automated way of installing and setting up Squeezeplay on the O2 Joggler - All compiled files are hosted on my website
#and have been compiled by me especially to run on the Joggler / Openpeak hardware.
#However, I do not warrant that these binaries are free of viruses or any other defects which may cause your Joggler to fail or render useless (i.e. Bricked..)
#You have been warned.
#
#If you find this useful please consider making a donation at www.tarkan.info
#
#
cd /media

echo "This script will now download the latest install script"

if [ ! -d "/media/squeezingtarkan" ]; then
	mkdir /media/squeezingtarkan
fi

cd /media/squeezingtarkan
wget http://www.tarkan.info/images/joggler/SqueezingTarkanLatest.sh
chmod a+x /media/squeezingtarkan/SqueezingTarkanLatest.sh

if [ -s "/media/squeezingtarkan/SqueezingTarkanLatest.sh" ]; then
echo "Latest script downloaded..... ready to start install"
sh /media/squeezingtarkan/SqueezingTarkanLatest.sh

rm /media/squeezingtarkan/SqueezingTarkanLatest.sh

echo "Rebooting Joggler......"
echo "this may take some time so please patient"
echo "please donate if you find this release useful"
echo "it helps pay for my hosting costs......Thanks www.tarkan.info"

reboot

exit

else
echo "ERROR : script has not been downloaded : ERROR"
echo "please check you have internet access from the Joggler"
exit
fi

