first commint

This commit is contained in:
Sebastian
2026-05-29 14:58:23 +02:00
commit 5d294a5620
11 changed files with 1129 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
[Unit]
Description=Enable Wake on LAN on all ethernet interfaces
After=network.target
[Service]
Type=oneshot
# Włącza WoL (g = magic packet) na każdym interfejsie sieciowym
ExecStart=/bin/bash -c '\
for iface in $(ls /sys/class/net | grep -v lo); do \
ethtool -s "$iface" wol g 2>/dev/null \
&& echo "WoL enabled: $iface" \
|| true; \
done'
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target