Le Thursday 26 July 2007 14:14:57 Raj Kiran Grandhi, vous avez écrit : > On 7/26/07, Gilles Mocellin <firstname.lastname@example.org> wrote: > > Le Wednesday 25 July 2007 01:46:03 Raj Kiran Grandhi, vous avez écrit: > > > Hi, > > > > > > I am trying to get "wake on lan" to work in Etch. I have a motherboard > > > with an onboard NIC which supports wake-on-lan. I have enabled > > > wake-on-lan in the bios. When I poweroff the computer during POST, I am > > > able to remotely wake it, but if I shut it down from Etch, power to the > > > NIC is also being turned off and wake-on-lan does not work. I have > > > edited '/etc/init.d/halt' and removed the '-i' option from the 'halt' > > > command, but the NIC is still being powered down. > > > > Try to add this line in your /etc/network/interfaces : > > post-down ethtool -s eth0 wol g > > > > It tells your nic to prepare to be woken up, so perhaps it will not power > > off. > > > > Install ethtool if you don't have it. > > ethtool did the trick! Thanks a lot. Only, I had to add that line as a > script in the /etc/network/if-up.d directory. It's OK, I just thought it was more suitable to set wol for the card on network stop, not start. But I was perhaps wrong about the post-down, perhaps a bit too late. If it work at start, let's go. Personnaly, I prefer to add a "up" line in my /etc/network/interfaces instead of create a script in /etc/network/if-up.d. That Way I know wich interface is up.
Description: This is a digitally signed message part.