kolossos4730 wrote:
> Steen, Greg, Ralphy
>
> I now have working 'Add WOL command to pCP boot sequence' and 'Remove
> WOL command from pCP boot sequence' menu options in the piCorePlayer
> applet. For this to work I modify do_rebootstuff.sh:
>
> >
Code:
--------------------
> > # Display the IP address
> ifconfig eth0 2>&1 | grep inet >/dev/null 2>&1 && echo "${BLUE}eth0 IP:
$(pcp_eth0_ip)${NORMAL}"
> ifconfig wlan0 2>&1 | grep inet >/dev/null 2>&1 && echo "${BLUE}wlan0 IP:
$(pcp_wlan0_ip)${NORMAL}"
>
> ECHO \"${BLUE}SEND WOL MAGIC PACKET.${NORMAL}\"
>
> echo "${GREEN}Finished piCorePlayer setup.${NORMAL}"
>
> if [ "$JIVELITE" = "yes" ]; then
--------------------
> >
>
> My code checks for this text and inserts the ether-wake command after
> this line. If this text is not found nothing will be inserted. If you
> use the remove menu option the echo and ether-wake command ar
> commented out.
>
> Is it OK to do it this way or is there a better place somewhere to put
> this ether-wake command. /opt/bootlocal.sh doesn't work as the network
> is not up and running I presume.
>
> Attached is a version of piCorePlayer applet with the new code
> included. Just for testing purposes as the messages have not been
> included in strings.txt yet.
>
> Regards,
> Arie
>
> 20787
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"
[ "$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.
------------------------------------------------------------------------
paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=105018
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix