I am trying to enable WOL and followed this answer: How can I enable wake-on-lan permanently?
As per the link, I created an upstart job to enable WOL upon reboot. Script is:
start on started network
script
for interface in $(cut -d: -f1 /proc/net/dev | tail -n +3); do
logger -t 'wakeonlan init script' enabling wake on lan for $interface
ethtool -s $interface wol g
done
end script
Named the script wakeonlan.conf and it's located in /etc/init/. I can start the job by:
sudo service wakeonlan start
This starts successfully and WOL is enabled on eth0.
However on reboot, the upstart job fails to start. The wakeonlan.log shows:
Cannot get current wake-on-lan settings: Operation not supported
not setting wol
I'm not sure what to do next?