#!/bin/bash ########################################### #This script was written by rob newland # #and is free (as in speech) for all uses. # #it may be modified or have anything done # #to it as long as this notice remains. # # Contact: robnewland@gmail.com # # Or : Find me on USALUG.org :D under # #the username crudball. # ########################################### clear echo echo hello and welcome to my doom3 installation script for linux.... echo " ______________________ ____ ______ / _ / _ / _ / \ / \ |____ | / /_/ / |_| / |_| / /\ \/ /\ \ ___| | /_____/_____/_____/__/ \____/ \__\ |___| | ___| | Press enter to start |______| " read -p "" pie read -p "please enter your user name for this computer... " user read -p "please enter the location of your cdrom drive - eg /mnt/cdrom or /media/cdrom etc... " cdlocation echo checking to see if you have doom3 installed already... if [[ -d /home/$user/doom3 ]] then echo "There is already a doom3 folder in the location where it should be installed. Either you already have it installed or you have a file named doom3. Please rename the file if you do. The installation will now quit."; sleep 3; exit 0 else echo "Installation will know continue" fi echo making appropriate directories... cd /home/$user/ mkdir doom3 && cd doom3 && mkdir base && cd base echo please insert your doom 3 cd1 eject $cdlocation read -p "Press enter when ready..." pie echo going into the doom3 cd1 files directory.... mount $cdlocation sleep .5 cd $cdlocation/Setup/Data/base echo copying the pk4 files cp game00.pk4 /home/$user/doom3/base cd $cdlocation/Setup/Data/base cp pak002.pk4 /home/$user/doom3/base sleep 6 echo finshed echo please eject cd1 and insert cd2 umount $cdlocation read -p "Press enter when ready..." pie echo going into doom3 cd directory mount $cdlocation sleep .5 cd $cdlocation/Setup/Data/base echo copying the .pk4 files... cp pak000.pk4 /home/$user/doom3/base cd $cdlocation/Setup/Data/base cp pak001.pk4 /home/$user/doom3/base/ sleep 6 echo please eject cd2 and insert cd3 read -p "Press enter when ready..." pie echo changing directory to the doom3 cd mount $cdlocation sleep .5 cd $cdlocation/Setup/Data/base/ echo copying the .pk4 files cp pak003.pk4 /home/$user/doom3/base/ cd $cdlocation/Setup/Data/base cp pak004.pk4 /home/$user/doom3/base/ sleep 6 echo ok please eject cd3 umount $cdlocation echo downloading the appropriate .run installer from the internet cd /home/$user/doom3 wget http://www.freewebs.com/doom3onlinux/doom3-linux-1.3.1302.x86.run echo ...ok now launching setup,bye bye $user... sh doom3-linux-1.3.1302.x86.run cd /home/$user/Desktop ln -s /home/$user/doom3/doom3 exit 0