Skip to content

Instantly share code, notes, and snippets.

@Kambaa
Created October 10, 2022 15:37
Show Gist options
  • Save Kambaa/88aa363c3e531ea780ace7957a43661d to your computer and use it in GitHub Desktop.
Save Kambaa/88aa363c3e531ea780ace7957a43661d to your computer and use it in GitHub Desktop.
Pardus WOL (Wake On Lan)
# Pardus Wake On Lan Ayarı
# Kaynak: https://forum.pardus.org.tr/t/pardus-wake-on-lan/22096
# wol.service isminde bir servis oluşturun:
# sudo nano /etc/systemd/system/wol.service
# İçeriğine aşağıdaki kodu kopyala yapıştır yaparak kaydedin:
# Not: Komutta bulunan enp3s0 bilgisini kendinize uygun olarak değiştirin.
# Uç birimden ip addr komutunu çalıştırarak bağlı olduğunuz donanımı bulabilirsiniz.
# Kaydedip kapatın ve uç birimeden aşağıdaki komutları çalıştırın:
# sudo systemctl daemon-reload
# sudo systemctl enable wol.service
# sudo systemctl start wol.service
[Unit]
Description=wol
Requires=network.target
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/ethtool -s enp3s0 wol d
ExecStop=/usr/sbin/ethtool -s enp3s0 wol g
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment