How to get ethtool wake-on-lan setting to "stick"?
You could use /etc/rc.local or some system boot scripts, but this wouldn't be the best way to do it. On startup your network interfaces are configured, sure, but there are other times when your network interfaces may be brought up or down and you will need this executed during those times.
You want to edit /etc/network/interfaces:
You should have a line like:
iface eth0 inet static
Underneath that, indented further, you want to create a post-up and post-down commands e.g.
iface eth0 inet static
post-up /usr/sbin/ethtool -s eth0 wol g
post-down /usr/sbin/ethtool -s eth0 wol g
Obviously, replace eth0 with the relevant interface if different.
See interfaces(5) for more information on post-up and post-down commands
man 5 interfaces