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:
djurny
2025-05-29 08:46:08 -07:00
committed by GitHub
parent c70ab6079c
commit f4f14832f5
2 changed files with 2 additions and 1 deletions

View File

@@ -13,4 +13,5 @@ KERNEL_TEST_TARGET="current"
function post_family_config__helios4_extra_packages() {
add_packages_to_image "fancontrol"
add_packages_to_image "ethtool"
}

View File

@@ -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]