Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#11109 - [initscripts] Support for WOL
Attached to Project:
Arch Linux
Opened by Jon Scully (soloport) - Monday, 04 August 2008, 04:20 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 27 May 2010, 16:56 GMT
Opened by Jon Scully (soloport) - Monday, 04 August 2008, 04:20 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 27 May 2010, 16:56 GMT
|
DetailsDescription: Add support for Wake-on-LAN
Files affected: * /etc/config.d/wol (add) * /etc/rc.shutdown * /etc/rc.d/network See attached patch file. ADD /etc/config.d/wol # Comment out the following line to support Wake On LAN WOL_ARGS="-i" # Change to appropriate target device WOL_DEV=eth0 CHANGE /etc/rc.shutdown: ... . /etc/conf.d/wol ... /sbin/poweroff -d -f -h $WOL_ARGS ... CHANGE /etc/rc.d/network: ... . /etc/conf.d/wol ... if [ -n $WOL_ARGS ]; then /sbin/ifconfig ${1} down >/dev/null 2>&1 else ethtool -s $WOL_DEV wol g fi ... |
This task depends upon
Closed by Aaron Griffin (phrakture)
Thursday, 27 May 2010, 16:56 GMT
Reason for closing: None
Additional comments about closing: See comments. No longer an issue / old bug
Thursday, 27 May 2010, 16:56 GMT
Reason for closing: None
Additional comments about closing: See comments. No longer an issue / old bug
wol.diff
Is there anyway this behavior can be accomplished with an rc.d script that is part of the ethtool package? Perhaps if we added a "SHUTDOWN_ARGS" param for arguments to 'poweroff' ?
I'd rather enable the ability to make a wake-on-lan rc.d script, than include it, for right now
In practice:
* shutdown begins
* /etc/rc.d/network 'down's the interface as normal
* /etc/rc.d/wol re-'up's the device and sets -g option
* shutdown continues
Correct reverse-order in /etc/rc.conf required:
DAEMONS=(syslog-ng wol iptables network...
I think I'd rather name it "POWEROFF_ARGS" and add it to the default rc.conf, but I'm not sure if we should have a default value, or keep "-d -f -h" in rc.shutdown
That way, you can make a wol rc.d script much easier
I am really really confused what this is about.