#!/bin/sh # TMP=/tmp/.picon 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/bin/ ]; then echo "--------------------------" echo "no swapstick found...." echo "--------------------------" exit 1 fi echo "swapstick found...." echo "installing swap Picons for Titan..." 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 if [ -e /var/swap/titanpicons ]; then echo "backup old /var/swap/titanpicons > /var/swap/titanpicons.backup.default" mv /var/swap/titanpicons /var/swap/titanpicons.backup.default fi rm -rf /var/usr/local/share/titan/picons ln -s /var/swap/titanpicons /var/usr/local/share/titan/picons exit 0