How to add wakeonlan to startup script

So I just ordered raspberry pi 2 to try and run rasplex on it more media player. Going to go the flirc route for remote. I need wakeonlan to start my server in order for this setup to be wife friendly. I created by own script for use in windows with my current setup but won't work with raspberry pi.

 

How do I edit the autostart.sh myself?

 

Is it possible to install something like this below to start when rasplex wakes up?

Linux Install etherwake Under Debian / Ubuntu Linux

etherwake command can be used to send a Wake-On-LAN "Magic Packet" under Linux operating systems. Type the following command to install the same under Debian / Ubuntu Linux desktop:
$ sudo aptitude install etherwake

How Do I Send WOL Magic Packets Under Linux?

Type the following command:
# wakeonlan MAC-Address-Here

So I just ordered raspberry pi 2 to try and run rasplex on it more media player. Going to go the flirc route for remote. I need wakeonlan to start my server in order for this setup to be wife friendly. I created by own script for use in windows with my current setup but won't work with raspberry pi.
 
How do I edit the autostart.sh myself?
 
Is it possible to install something like this below to start when rasplex wakes up?


Why didn't you try searching before posting, I have wasted my time doing this for you, all of 10 seconds, try https://forums.plex.tv/topic/122550-wake-on-lan-waking-up-nas-on-rasplex-startup-need-help/?hl=wakeonlan#entry730565

Why didn't you try searching before posting, I have wasted my time doing this for you, all of 10 seconds, try https://forums.plex.tv/topic/122550-wake-on-lan-waking-up-nas-on-rasplex-startup-need-help/?hl=wakeonlan#entry730565


My apologies. I did google search and not a forum search here. Thanks for tip