AWol has a lp Project
I’ve put Awakenonlan into launchpad to try and encourage getting it packaged. I’ll add a needs-packaging
bug.
https://launchpad.net/awakenonlan
The idea of this package is to enable Wake On Lan features of ethernet ports by executing ethtool according tot he configuration in /etc/network/wakeonlan
but it’s proving to be quite hard to package because it needs to have something that runs every time to the computer boots. And there isn’t a defined way to do this from motu (as far as I can tell). If any of you in the community know how to get this packaged up, I’d be most grateful.
I may be wrong… but I think the best way to do this to drop it in /etc/init.d/ and link it up using “sudo update-rc.d defaults” or similar. This is run on boot… see /etc/init.d/networking for another boot-time only script that runs. Then you just need to figure out how to ship that config (of course)
If you want something to run as a service, you need an init script, as mentioned above. On Ubuntu this should actually be an Upstart script, which is similar in that it serves the same purpose, but uses the new Upstart init infrastructure.
http://upstart.ubuntu.com/
I’ve not had an opportunity to try it out in any way, and the upstart and init script will probably fail miserably, but it’s beyond my bedtime.
https://launchpad.net/~aaron-haviland/+archive/testing
Interestingly, because of a change in dh_installinit in karmic, this package will build using upstart if built on karmic, but will use old-style sysvinit scripts if build on jaunty.
I do get this warning from the script, though:
Useless use of a constant in void context at ./awakenonlan line 84.