#!/bin/sh
#
TMP=/tmp/.titanskin
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" = "" ]; 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 "checking swapstick"
if [ ! -d /var/swap/titanskins/ ]; then
  echo "--------------------------"
	echo "no swapstick found...."
	echo "--------------------------"
	exit 1
fi
echo "swapstick found...."
echo "installing tobayer01 skin to swapstick..."

exit 0