#!/bin/sh KEYBOARD=`pidof hildon-input-method` POKERTH=`pidof pokerth` if [ "$POKERTH" ] then echo "PokerTH is already started, exiting..." exit 0 else if [ "$KEYBOARD" ] then /etc/osso-af-init/keyboard.sh stop echo "Starting PokerTH..." /usr/local/games/PokerTH-0.6.2/pokerth.sh while [ "$POKERTH" ] do echo "Debugger: If you see this text, there is a problem" sleep 300 done /etc/osso-af-init/keyboard.sh start else echo "hildon-input-method is stopped." if [ "$POKERTH" ] then echo "Killing PokerTH..." kill $POKERTH fi echo "Starting hildon-input-method..." /etc/osso-af-init/keyboard.sh start fi fi exit 0