View Single Post
Posts: 79 | Thanked: 20 times | Joined on Apr 2010
#12
For the record, here's what I did to make it always run in the background:

Code:
root
cd /etc/event.d
nano shairport
Contents of the file:

Code:
start on started xsession
console none
respawn

exec su -c "/opt/shairport_fremantle/bin/shairport -a \"Stereo\" -b 282 -q -d" user
... where /opt/shairport_fremantle is where I put ukki's script, and Stereo is what I want to see when I redirect audio to the N900.

Just to be sure, I matched the permissions of other files in that directory:
Code:
chmod u+w shairport
chmod a+r shairport
 

The Following User Says Thank You to mikaelh For This Useful Post: