paul- wrote: > What are you waking up? The LMS Server? Normally we don't directly > modify our scripts like that. We put a permanent option in the > configuration......and run a command or not run a command based on the > config variable. > > For example the config variable is WOL="on" <OR> WOL="off" And the > below statement in do_rebootstuff.sh > [ "$WOL" = "on" ] && run_wol_script.sh > > Then the file you need to manipulate is /usr/local/sbin/config.cfg to > change the status of the WOL= statement. There is a bit more to this > to allow for configs to transfer when upgrading pcp versions and backing > up and restoring configurations.
Paul, Thanks for the detailed description. My LMS server (actually it's an Intel NUC) is located in the attic and powered off when not in use. When my players are not in use I always pull the plugs, so I need a WOL command to wake up the server. Of Course this can be achieved with the Tweaks -> User command option, but why take the easy way when it is also possible to configure this with my applet ;) Another benefit, at least for me ,is that I can easily switch MAC addresses, as I have multiple LMS servers for test purposes. I'll try to rewrite to code to take advantage of piCorePlayer's configuration logic. Will report back when this is done. Regards, Arie ------------------------------------------------------------------------ kolossos4730's Profile: http://forums.slimdevices.com/member.php?userid=63988 View this thread: http://forums.slimdevices.com/showthread.php?t=105018 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
