To run LMS with the --nomysqueezebox option on a Mac when
starting/stopping LMS from the System Preferences you'll need to modify
a simple script.
Open the file below in your favourite text editor:
Code:
--------------------
/Library/PreferencePanes/Squeezebox.prefPane/Contents/Resources/start-server.sh
--------------------
Then change just add the --nomysqueezebox switch the slim server.pl
line. In my file it now looks like this:
Code:
--------------------
#!/bin/sh
SERVER_RUNNING=`ps -axww | grep
"squeezecenter\.pl|slimp3\.pl\|slimp3d\|slimserver\.pl\|slimserver" | grep -v
grep | cat`
PRODUCT_NAME=Squeezebox
LOG_FOLDER="$HOME/Library/Logs/$PRODUCT_NAME"
if [ z"$SERVER_RUNNING" = z ] ; then
if [ ! -e $LOG_FOLDER ] ; then
mkdir -p $LOG_FOLDER;
fi
if [ z"$USER" != zroot ] ; then
chown -R $USER $LOG_FOLDER
fi
cd "`dirname $0`/../server"
./slimserver.pl --nomysqueezebox --daemon $1 &> /dev/null &
fi
--------------------
Caveats:
1. This will only take effect when manually starting LMS from the System
Preferences. I doubt it will work when automatically starting at boot.
2. I presume the changes will be lost on upgrade, so you'd need to
re-apply the change after an upgrade.
If there's a better/cleaner way to enable this option then please feel
free to point it out.
------------------------------------------------------------------------
odw199's Profile: http://forums.slimdevices.com/member.php?userid=15387
View this thread: http://forums.slimdevices.com/showthread.php?t=107505
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter