WakeOnLan

ethtool -s eth0 wol g

これだけだったのか...勘違いしてた。


CentOSの場合は
/etc/rc.localの最後の行に上を追加しておけばいいだけ。
ただし、フルパスが必要。

echo "`which ethtool` -s eth0 wol g" >> /etc/rc.local

とか。


Ubuntuの場合は
/etc/rc.localの最後が"exit 0"になっているのでこれよりも上に。