#!/bin/sh
#
TMP=/tmp/.set
echo "syncing disk"
sync

model=`cat /etc/model`
echo""
echo "Checking your Boxtype...."
echo "Some Plugins will not work correctly on your $model!"
echo ""
if [ "$model" != "at7500" ]; then
	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
	echo "Aborting installation..."
	exit 1
else
	echo "Boxtype: $model OK"
fi

echo "installing settings ..."
echo "checking OS"
if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then                      
	echo ---------------------------
	echo DONT USE this IPK Package!!
	echo ---
	echo Only for AAF Image!!
	echo ---------------------------
	exit 1
fi

echo "remove /etc/enigma2/*.tv"
rm -rf /etc/enigma2/*.tv
echo "remove /etc/enigma2/*.radio"
rm -rf /etc/enigma2/*.radio
echo "remove /etc/enigma2/satellites.xml"
rm -rf /etc/enigma2/satellites.xml
echo "remove /etc/enigma2/lamedb"
rm -rf /etc/enigma2/lamedb
echo "remove /etc/enigma2/userbouquet.*"
rm -rf /etc/enigma2/userbouquet.*

exit 0
