2010-10-09, 20:49
alexpigment Wrote:When you said that your script appends certain files, are you referring to steps 6b and 7b in my original post? If so, I know how to resolve it for at least 6b. That step was only necessary because my directions assumed you were using the tarball from the original dropbox URL. I think you could instead take the SH file after editing then re(zip?) into a new tarball and host that one instead.yep, its the xboxdrv_for_XBMC_live.9.04.jaunty.sh that gets appended. The tarball that is hosted on the google code page is now at V2 (not sure if you'd noticed). I edited that SH script and took out the call to the xboxdrv that was in there. My own script now asks you how many controllers you wish to install it for, and then appends this newer xboxdrv_for_XBMC_live.9.04.jaunty.sh accordingly
alexpigment Wrote:With regards to the RC.local file, I'm not sure there's really anything that can be done to avoid adding more lines when running it multiple times, but I guess you could somehow check for the words "xboxdrv_for_XBMC_live.9.04.jaunty.sh" and if it exists, then don't write anything to the file. Keep in mind, I know nothing about coding and have no idea how you would do this.it was more the ...jaunty.sh file that I had a problem with appending too many times. Essentially if you run the script more than once, it appends the data onto the end of the file, thereby creating repetition in the file.
There is a commented out line that I added into my script that you can un-comment if you wish the script to backup your ...jaunty.sh file, just in case people want to do this.
If the file gets backed up, it wont append the file, it'll just create a new one
If I've got time tomorrow, I may edit the script so it takes this problem away
The other file that gets overwritten is the rc.local file. In order to get the script to do this (if you want it to) you need to run the script using sudo to obtain the correct priviledges.
hopefully this will help people in future with these issues. I know I've gained a load of helpful knowledge from these forums and just wanted to give something back