You are here: Home » Reply

Reply To: Start Firefly on NSLU2 reboot

#16518

sonichouse
Participant

@mouse wrote:

I’m really happy with my NSLU2/Firefly/Soundbridge setup apart from having to telnet into the slug to start firefly if it has been switched off.

This doesn’t happen too often but there must be a way to start firefly automatically when the slug boots – is there?

Cheers

Mouse

In /opt/etc/init.d my file S60mt-daapd has the following :-

#!/bin/sh

# make sure our shared libraries are in the path.
# if we get /etc/ld.so.conf working, this export
# can be removed
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lib

if [ -n "`pidof mt-daapd`" ] ; then
killall mt-daapd 2>/dev/null
fi

sleep 2
/opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf

Remember to chmod 755 the file as well.