I'm suffering from this problem too, but removing the "-i" does not seem
to help.

I think this problem might be solved in a different way.  What about
adding a line (and the requisite parsing) in the /etc/network/interfaces
file to configure WoL on/off?

Something like:

/etc/network/interfaces
-----------------------------------------------------
# The primary network interface
auto eth0
iface eth0 inet dhcp
wakeonlan $X
-----------------------------------------------------

Where $X is one of:
        p|u|m|b|a|g|s|d...
               p  Wake on phy activity
               u  Wake on unicast messages
               m  Wake on multicast messages
               b  Wake on broadcast messages
               a  Wake on ARP
               g  Wake on MagicPacket(tm)
               s  Enable SecureOn(tm) password for MagicPacket(tm)
               d  Disable (wake on nothing).  This option clears  all  previous
                  options.
See:
 * http://manpages.ubuntu.com/manpages/jaunty/en/man8/ethtool.8.html

The if-scripts would then handle sending the appropriate 'ethtool -s
eth0 wol $X' command  on ifup/ifdown.

I'm happy to write this code if Scott and Alexander can verify the
approach.

Also, Alexander asked me in IRC if ethtool could set this value
correctly even if the interface is ifconfig'd down.  I have verified
that the answer is "yes, it can".

:-Dustin

-- 
/etc/init.d/(halt|reboot) disables WoL
https://bugs.launchpad.net/bugs/71418
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to