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


+-------------------------------------------------------------------+
|Filename: piCorePlayerv8_test.zip                                  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=20787|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
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

Reply via email to