News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

XBMCbuntu run script at startup?

Started by addictweb, March 07, 2012, 09:11:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

addictweb

I'm having some issues getting a script to run at boot on my new XBMCbuntu install.

I have created a script called xboxdrv to setup 4 wireless xbox 360 pads. The script is executable and runs fine from a command window:

$/etc/xboxdrv start

However when I add that line to rc.local (as below) I get nothing:

Quote from: rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Start xboxdrv controllers using custom start-up script
/etc/xboxdrv start

exit 0

I've made sure rc.local is executable. The script writes logs to file but nothing is written on boot so I assume its not executing at all.

Anyone got any ideas?
Formerly sexytw

M3ta7h3ad

Try: nohup /etc/xbmcblah start &

nohup will redirect the output to a text file, the ampersand will background the lot meaning your rc.local won't just pause at that line waiting for the script to end.