WoL mit Marvell 88E8001 - shutdown verändern

Hallo,

ich bin soweit gekommen, dass die WoL-Funktion meiner Netzwerkkarte aktivieren konnte (Treiber skge genommen).
Das Problem ist, dass diese Funktion bei jedem Shutdown wieder deaktiviert wird.
vorher:

ethtool -s eth1 wol g
ethtool eth1 | grep Wake
 Supports Wake-on: g
 Wake-on: g

Nach einem Neustart (ohne WoL):

ethtool eth1 | grep Wake
 Supports Wake-on: g
 Wake-on: d

Hier http://www.darkblue.de/content/index.php?dir=Projekt… habe ich gelesen, dass der shutdown verändert werden muss, damit die Karte nicht komplett ausgeschaltet wird.
Nur steht in meiner /etc/init.d/halt diese Zeile nicht und somit kann ich sie auch nicht verändern.

#! /bin/sh
# Copyright (c) 1996-2002 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
# Author: Florian La Roche, 1996
# Werner Fink , 1996-2001
#
# Please send feedback to http://www.suse.de/feedback
#
# /etc/init.d/halt (and symlinked to reboot)
#

. /etc/rc.status
. /etc/sysconfig/clock
. /etc/sysconfig/shutdown

#
# Avoid being interrupted by child or keyboard
#
trap "echo" SIGINT SIGSEGV SIGQUIT SIGTERM
set +e

case "$0" in
 \*halt)
 message="The system will be halted immediately."
 case `/bin/uname -m` in
 i?86)
 command="halt"
 if test -e /proc/apm -o -e /proc/acpi -o -e /proc/sys/acpi ; then
 command="halt -p"
 else
 read cmdline /success

# Stop blogd before umounting /var
test -x /sbin/blogd && killproc -QUIT /sbin/blogd

echo "Sending all processes the TERM signal..."
killall5 -15
echo -e "$rc\_done\_up"

sleep 1
test "$1" = "fast" -o -e /fastboot || sleep 4

echo "Sending all processes the KILL signal..."
killall5 -9
echo -e "$rc\_done\_up"

# Redirect our mesages to default console
test -n "$REDIRECT" && exec 0 $REDIRECT 1\>&0 2\>&0

#
# call modules in boot.d via K\* symlinks
# (reverse sequence)
#

if test -d /etc/init.d/boot.d/ ; then
 for i in /etc/init.d/boot.d/K\*; do
 test -f $i || continue
 if test -x "$i" ; then
 # Active boot scripts, should have their own messages
 $i stop
 else
 # Old boot scripts, may not have any message
 echo Skipping $i, not executable
 fi
 done
fi

# kill splash animation
test "$SPLASH" = yes && /sbin/splash -q

umount -anvt proc

# on umsdos fs this would lead to an error message, so direct errors to
# /dev/null
mount -no remount,ro / 2\> /dev/null
sync

# show "the system is down" message
if test "$SPLASH" = yes ; then
 mount -nt proc proc /proc
 /sbin/splash -q -p 65535 -t "isdown"
 umount -n /proc
fi

# Make reboot noise and wait a few seconds to give harddisks the chance
# to really flush their buffers before power goes down.
if test -n "$REDIRECT" ; then
 sleep 1
 case "$HALT\_SOUND" in
 "yes"|"quint")
 echo -en "\033[10;393]\a\033[10;262]"
 sleep 1
 ;;
 "octave")
 for tone in 524 491 440 393 349 328 295 ; do
 echo -en "\033[10;${tone}]\a"
 usleep 125000
 done
 echo -en "\033[10;262]"
 ;;
 "no")
 ;;
 \*)
 echo -en "\033[10;440]\a"
 usleep 250000
 ;;
 esac
else
 test "$HALT\_SOUND" = "no" || echo -en "\a"
 sleep 2
fi
echo $message
test "$HALT\_SOUND" = "no" || echo -en "\a"

test -n "$HALT\_POWERDOWN\_INSERT" && $HALT\_POWERDOWN\_INSERT

# Set system console back to intial value
test -n "$REDIRECT" -a -n "$CONSOLE" && setconsole $REDIRECT 

Wo kann ich das Ausschalten der Netzwerkkarte verhindern?



    System: opensuse10.2 x86\_64;2.6.18.8-0.5-default
    lspci | grep Eth
    00:0a.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13)

Hallo,

ich bin soweit gekommen, dass die WoL-Funktion meiner
Netzwerkkarte aktivieren konnte (Treiber skge genommen).
Das Problem ist, dass diese Funktion bei jedem Shutdown wieder
deaktiviert wird.

Genau der Shutdown war das Problem.
Suse deaktiviert eth komplett. Ich hatte den NetworkManager genutzt.
Ifup scheint dafür jedoch besser geeignet zu sein.

Lösung mit NetworkManager:

In /etc/init.d/halt.local

ifup eth1
ethtool -s eth1 wol g

eintragen.
In die /etc/init.d/boot.local

ethtool -s eth1 wol g

eintragen.

Viel Spaß beim Aufwecken.
Ich leg mi jetz erstma hi … ist früh geworden :smile: