28th October 2016, 11:32
I can solved with this:
1.- sudo nano /etc/init.d/wakeup.sh
2.- #!/bin/bash
ethtool -s eth0 wol g
3.-sudo chmod a+x /etc/init.d/wakeup.sh
4.-sudo update-rc.d wakeup.sh defaults
Note: eth0 = Name of the nic, in my case: enp4s0
1.- sudo nano /etc/init.d/wakeup.sh
2.- #!/bin/bash
ethtool -s eth0 wol g
3.-sudo chmod a+x /etc/init.d/wakeup.sh
4.-sudo update-rc.d wakeup.sh defaults
Note: eth0 = Name of the nic, in my case: enp4s0