#!/bin/sh
echo '###########################'
echo '# www.xxxxxxx.co.uk #'
echo '###########################'
echo $LINE
echo 'Updating Rats Bouquets @ DigitalWorldz'
echo 'FIRST STEP UPDATE ACTUAL PLUGIN'
if opkg install --force-depends http://www.xxxxxxx.co.uk/?dl_name=rats_bouquets_latest.ipk > /dev/null; then
echo "Your package is being updated"
echo "SUCCESS - Updated Plugin VIA OPKG"
else
echo "Could not update the plugin with OPKG - Trying Alternative Installation Method"
ipkg install --force-depends http://www.xxxxxx/?dl_name=rats_bouquets_latest.ipk > /dev/null
echo "Success Now Moving On"
fi
# < /dev/null > /dev/null 2>&1
#Above Might be useful for outputing nothing from IFS
echo $LINE
echo 'SECOND STEP UPDATE BOUQUETS AND SERVICES'
echo 'Updating Services'
echo 'Please Wait'
echo $LINE
wget http://xxxxxxxxxxx.co.uk/?dl_name=rats.zip -O /tmp/rats.zip > /dev/null
echo 'Download Complete'
unzip -o /tmp/rats.zip -d /etc/enigma2 > /dev/null
rm -rf /tmp/rats.zip > /dev/null
echo $LINE
echo 'Reloading Services, Please Wait'
wget -qO - http://127.0.0.1/web/servicelistreload?mode=1 > /dev/null
wget -qO - http://127.0.0.1/web/servicelistreload?mode=2 > /dev/null
echo $LINE
echo 'Rats Plugin Complete'
echo 'Thank you for using Rats Update Plugin @xxxxxxx
echo $LINE
echo '...COMING SOON... ...RATS AUTO-UPDATE PICONS...'
echo $LINE
exit 0
#created by Rat
#www.xxxxxxxxxx
#www.xxxxxxxxxx