#!/bin/bash # Start JK3 Script # by [LJC]the1 #Set where your cdrom is being mounted, like /mnt/cdrom CDPATH='/mnt/cdrom' #Set full path to your JK3 Game Installation cd ~/TransGaming_Drive/Program\ Files/LucasArts/Star\ Wars\ Jedi\ Knight\ Jedi\ Academy/GameData/ #The rest should not be modified... CDCHECK=`ls $CDPATH |grep JediAcademy.exe` if [ "$CDCHECK" = "JediAcademy.exe" ]; then echo "Jedi Academy CD seems to be mounted..." echo "Starting Game..." `winex3 jamp.exe` exit 0 else if [ "$CDCHECK" = "" ]; then echo "Jedi Academy CD not mounted" echo "Attempting to auto mount..." mount $CDPATH CDCHECK=`ls $CDPATH |grep 'JediAcademy.exe'` if [ "$CDCHECK" = "JediAcademy.exe" ]; then echo "Jedi Academy CD is now mounted." echo "Starting Game..." `winex3 jamp.exe` exit 0 else clear echo "JKA CD not present" echo "Please incert Game CD and try again" exit 0 fi fi fi