[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting wake-on-lan to work in Etch



On 7/26/07, Gilles Mocellin <gilles.mocellin@free.fr> 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.



Reply to: