Talk:Wake on LAN

From Gentoo Linux Wiki

Jump to: navigation, search

The new shutdown.sh is looking like:

  1. Copyright 1999-2006 Gentoo Foundation
  2. Distributed under the terms of the GNU General Public License v2

opts="-d" [ "${INIT_HALT}" != "HALT" ] && opts="${opts}p" [ "${RC_DOWN_INTERFACE}" = "yes" ] && opts="${opts}i" [ "${RC_DOWN_HARDDISK}" = "yes" ] && opts="${opts}h"

/sbin/halt "${opts}"

  1. hmm, if the above failed, that's kind of odd ...
  2. so let's force a halt

/sbin/halt -f

So what to do with this?

Edit /etc/init.d/shutdown.sh

Replace

  1. /sbin/halt -ihdp

with

ifconfig eth0 192.168.1.12 up /usr/sbin/ethtool -s eth0 wol g /sbin/halt -hdp

Personal tools