#!/bin/bash aptitude install ethtool echo "#!/bin/bash" > wol.sh echo "ethtool -s enp3s0 wol g" >> wol.sh chmod a+x wol.sh echo "[Unit]" > wol.service echo "Description=Corrige WOL" >> wol.service echo "After=network.target network-online.target" >> wol.service echo "Wants=network-online.target" >> wol.service echo "" >> wol.service echo "[Service]" >> wol.service echo "ExecStart=/root/wol.sh" >> wol.service echo "" >> wol.service echo "[Install]" >> wol.service echo "WantedBy=multi-user.target" >> wol.service systemctl enable /root/wol.service systemctl start wol.service systemctl status wol.service