oki ou ile fameux man :p c'est bon j'ai compis a quoi ça servait en revanche le script ne semble pas fonctionner car après l'avoir activé, j'ai éteint la machine et ... rien, elle ne démarre pas
alors que si je l'allume et que j'active manuellement par :
ethtool -s eth0 wol g
alors là ça marche ....
si j'execute le script ça fait ça :
sh /etc/init.d/WakoOnLan
Activation du WakeOnLan pour eth0 [ OK ]
et avec un chkconfig --list
WakoOnLan 0:off 1:off 2:on 3:on 4:on 5:on 6:off
après reboot j'ai ça
ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pg
Wake-on: d
Current message level: 0x000000c5 (197)
Link detected: yes
et là si j'eteint ça ne marche pas
je peux donc conclure que le script ne démarrre pas automatiquement au lancement de fedora ?
si j'activ le script manuellement alors là pas de souci ...
j'ai peut être oublié ça (lol)
chmod a+x /etc/init.d/WakoOnLan
et sur une de mes rare station sous ubuntu
sources
http://ubuntuforums.org/showthread.php?t=234588
le script
nano /etc/init.d/WakoOnLan
#!/bin/bash
ethtool -s eth0 wol g
exit
et l'activation au démarrage
sudo update-rc.d -f WakoOnLan defaults
Adding system startup for /etc/init.d/WakoOnLan ...
/etc/rc0.d/K20WakoOnLan -> ../init.d/WakoOnLan
/etc/rc1.d/K20WakoOnLan -> ../init.d/WakoOnLan
/etc/rc6.d/K20WakoOnLan -> ../init.d/WakoOnLan
/etc/rc2.d/S20WakoOnLan -> ../init.d/WakoOnLan
/etc/rc3.d/S20WakoOnLan -> ../init.d/WakoOnLan
/etc/rc4.d/S20WakoOnLan -> ../init.d/WakoOnLan
/etc/rc5.d/S20WakoOnLan -> ../init.d/WakoOnLan
ok maintenant ça marche, eventuellement je peux rajouter ça à la doc de fedora ?