BDP Digital Player and WoL

0 Members and 1 Guest are viewing this topic. Read 1464 times.

RonCH

  • Jr. Member
  • Posts: 160
BDP Digital Player and WoL
« on: 16 Feb 2015, 09:00 pm »
Hi Chris,

Would it be possible to include Wake-on-LAN (WoL) in the BDP?  It would be a really nice feature to have.  Maybe on startup of the BDP could send a magic packet to wake up my NAS.

thanks

Ron

unincognito

  • Industry Participant
  • Posts: 2067
    • bryston.com
Re: BDP Digital Player and WoL
« Reply #1 on: 16 Feb 2015, 11:59 pm »
you could likely add this feature using the startup script

Code: [Select]
#!/bin/bash
apt-get install etherwake
etherwake <mac address of the device you want to wake up>

RonCH

  • Jr. Member
  • Posts: 160
Re: BDP Digital Player and WoL
« Reply #2 on: 18 Feb 2015, 09:41 pm »
you could likely add this feature using the startup script

Code: [Select]
#!/bin/bash
apt-get install etherwake
etherwake <mac address of the device you want to wake up>

Thanks Chris,

It works!

Although you need a -y option on the apt-get.  So the command looks like this:

apt-get -y install etherwake
etherwake  00:11:32:1A:XX:XX

The fly in the ointment is that it takes 55 seconds to install etherwake.  That's too long for me. 

I know you effectively get this question a lot, but I'll ask it anyway.  Is there a way to have it so that I don't have to install etherwake with every boot up?

regards

Ron



unincognito

  • Industry Participant
  • Posts: 2067
    • bryston.com
Re: BDP Digital Player and WoL
« Reply #3 on: 19 Feb 2015, 01:45 am »
Thanks Chris,

It works!

Although you need a -y option on the apt-get.  So the command looks like this:

apt-get -y install etherwake
etherwake  00:11:32:1A:XX:XX

The fly in the ointment is that it takes 55 seconds to install etherwake.  That's too long for me. 

I know you effectively get this question a lot, but I'll ask it anyway.  Is there a way to have it so that I don't have to install etherwake with every boot up?

regards

Ron

Your right, my bad.  The filesystem runs in a live environment like a Ubuntu live cd.  If you wanted to get creative you could download the individual dpkg files that make up etherwake to the user space (/mnt/img/) and install them from there, rather then download the package each time.

Cheers

RonCH

  • Jr. Member
  • Posts: 160
Re: BDP Digital Player and WoL
« Reply #4 on: 7 Mar 2015, 08:28 am »
Your right, my bad.  The filesystem runs in a live environment like a Ubuntu live cd.  If you wanted to get creative you could download the individual dpkg files that make up etherwake to the user space (/mnt/img/) and install them from there, rather then download the package each time.

Cheers

Hi Chris,

Thinking about it we could just do unpack etherwake and WoL if the NAS is asleep.  So that means we have something like this in the startup:

#!/bin/bash
if ! (ping -c1 10.0.1.201)
then
   apt-get -y install etherwake
  etherwake   00:11:32:1A:53:D9
fi

I would have liked to have ( with the output redirected to the null device):

#!/bin/bash
if ! (ping -c1 10.0.1.201 &> /dev/null )
then
   apt-get -y install etherwake
  etherwake   00:11:32:1A:53:D9
fi

but there's a bug in the save for your Startup-Script window and it doesn't save.

As always thanks for all your help.

Ron