Created
October 10, 2022 15:37
-
-
Save Kambaa/88aa363c3e531ea780ace7957a43661d to your computer and use it in GitHub Desktop.
Pardus WOL (Wake On Lan)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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