- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2023-04-22T14:03:39+09:00","michiro","michiro")
#author("2023-04-22T14:08:15+09:00","michiro","michiro")
**WOL Ubuntu22.04 [#pbf91375]
WOLできない。
https://blog.janjan.net/2022/08/10/ubuntu-wake-on-lan-settings/
https://chatnoirlibre.com/ubuntu-22-04-wake-on-lan/
# apt install ethtool
# ip link
でデバイスがenp0s25となっている。
# nano /usr/localbin/shutwol
でデバイスがenp0s25となっているのがわかる。
# nano /usr/local/bin/shutwol
作成
#!/bin/sh
/sbin/ethtool -s enp0s25 wol g && shutdown -h now
# chmod 755 /usr/local/bin/shutwol
# shutwol
shutdown -h nowの代わりにshutwolで解決。
[[日記]]