mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
helios4: fix helios4-wol.service (wake-on-lan) (#8235)
* helios4: fix wake-on-lan (wol) - added ethtool package - enable wol on all ethernet interfaces - support common systemd.net-naming-schemes (ethX/endX/enoX) * Update helios4-wol.service Removed test code. * Update helios4-wol.service Fix bug after retesting.
This commit is contained in:
@@ -4,7 +4,7 @@ After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/sbin/ethtool -s eth0 wol g
|
||||
ExecStart=/bin/sh -c '/bin/ls -1 /sys/class/net/ | /bin/grep -E "^(eth|en[do])[0-9]+" | /bin/xargs -n1 -I{} /sbin/ethtool -s "{}" wol g'
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user