Hallo zusammen,
ich hoffe, Ihr habt nichts dagegen, wenn ich mal hierreinfunke:
Ich beschäftige mich schon eine längere Zeit genau hiermit und habe es auch bisher leider nie hinbekommen, WOL korrekt (und zuverlässig) zum rennen zu bekommen. Meine Karte steht auch standardmäßig auf "g". Ich musste nicht mit
|
Quellcode
|
1
|
ethtool -s eth0 wol g
|
"umstellen".
Ich lese gerade dies hier:
http://www.gentoo-wiki.info/Wake_on_LAN und hab mal einige Fragen dazu:
Da heißt es oben:
Manual method
For older baselayout version, the manual method is desribed below.
In order to get WOL running on a gentoo box you need to enable it in your ethernet driver. You can do this with ethtool
ethtool -s eth0 wol g
... dann weiter unten:
The interface might need to be up when the machine is stopped. To do this, you might need to start the interface again with ifconfig eth0 192.168.1.12 up where eth0 is your network interface and 192.168.1.12 is the ethernet address you assing to it (should work with any address.)
To sum up the following should enable WOL on a gentoo system:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
|
Edit /etc/init.d/shutdown.sh
Replace
#/sbin/halt -ihdp
with
ifconfig eth0 192.168.1.12 up
/usr/sbin/ethtool -s eth0 wol g
/sbin/halt -hdp
|
Also meine "shutdown.sh" sieht mal komplett anders aus. Gut, dieses Beispiel scheint für ältere BaseLayouts zu sein. Verstehe ich mal so.
Aber...weiter oben fand ich dies hier:
|
Quellcode
|
1
2
3
|
Now enable wake-on-lan with ethtool, each time the computer is added by editing /etc/conf.d/local.start:
echo "ethtool -s eth0 wol g" >> /etc/conf.d/local.start
|
Ist DIES nun für BaseLayout 2, oder wie muss ich das verstehen?! Weil das wäre ja ungefähr dann so, wie IHR es macht, IHR setzt
|
Quellcode
|
1
|
ethtool -s eth0 wol g
|
jedesmal manuell, wenn Eure Karte WOL machen soll... Die datei "local.start würde das dann doch erledigen? Habt Ihr mal damit versucht? Bin gerade am überlegen das mal auszutesten... Allerdings würd ich es ungern mit nem Server im RZ probieren. Wär nett, wenn Ihr mir etwas unter die Arme greift...
Edit:
Hab mir gerade nochmal MEINE shutdown.sh vom Server angesehen...
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
init.d # cat shutdown.sh
# Copyright 1999-2006 Gentoo Foundation
# 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}"
# hmm, if the above failed, that's kind of odd ...
# so let's force a halt
/sbin/halt -f
|
Würde es evtl etwas bringen, oben bei den Options
|
Quellcode
|
1
|
[ "${RC_DOWN_INTERFACE}" = "yes" ] && opts="${opts}i"
|
- auf "no" zu setzen...?! Das heißt doch dort "INTERFACE OFF = YES" - Also, das er die Karte ausschalten soll... Und das WÜRDE doch mit "NO" verhindert?! - Oder seh ich des falsch?!