Contents of firefly-auto installation/launch script:
#!/bin/sh
cp /shares/Volume1/ShareApps/opt/firefly/startup.sh /shares/Volume1/startup.sh
cp /shares/Volume1/ShareApps/opt/firefly/lib* /shares/Volume1/ShareApps/opt/lib
cp /shares/Volume1/ShareApps/opt/firefly/ext-script.sh /shares/Volume1/ShareApps/ext-script.sh
export LD_LIBRARY_PATH=/shares/Volume1/ShareApps/opt/lib:/lib
cd /shares/Volume1/ShareApps/opt/firefly
./mt-daapd -c mt-daapd.conf
Contents of ext-script.sh script:
#!/bin/sh
export LD_LIBRARY_PATH=/shares/Volume1/ShareApps/opt/lib:/lib
cd /shares/Volume1/ShareApps/opt/firefly
./mt-daapd -c mt-daapd.conf
#commands to start up other services can go here...
Contents of starutp.sh script:
#!/bin/sh
/shares/Volume1/ShareApps/ext-script.sh