robroe;387721 Wrote:
> Is there any way to switch my Squeezebox onto SqueezeNetwork as my PC
> shutsdown, that is when I shut down "normally" as opposed to selecting
> a shutdown request from the Squeezebox menu?
What operating system are you using on the server? If it's linux, I
think this should be relatively easy:
Edit the /etc/init.d/halt script so that a CLI call is made to
SqueezeCenter early on in the script (i.e. before services like
SqueezeCenter are stopped). You could use NetCat (nc) to send the CLI
request. It would be something like this:
Code:
--------------------
#Additions to near the head of /etc/init.d/halt to switch SqueeezeBoxes to
SN..
SCIp='127.0.0.1'
CLIPort='9090'
#Make sure to edit the following to use YOUR player's MAC address..
PlayerMAC='00:04:20:10:01:09'
echo $PlayerMAC connect wwww.squeezenetwork.com | nc -w 3 $SCIp $CLIPort
sleep 5
--------------------
If your server is running windows, you can accomplish the same sort of
thing, I imagine, by following the instructions on creating a shutdown
script here: http://www.tutorial5.com/content/view/157/47/
In that case, you could again use NetCat (if you can find a win32
binary) or my SCCLITool.exe to send the CLI request. See
http://forums.slimdevices.com/showthread.php?t=52951 for SCCliTool.
--
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins