Skip to content

Commit a690983

Browse files
committed
feat: Enable Wake on LAN support on all interfaces (not for raspberry pi, not for LXC)
1 parent f729abf commit a690983

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎system/Dockerfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ RUN sed -i 's/^Components: main$/Components: main non-free-firmware/' /etc/apt/s
4444
intel-microcode \
4545
amd64-microcode \
4646
thermald \
47+
## cuos os extra for wake on lan \
48+
ethtool \
4749
## cuos os dependencies \
4850
btrfs-progs \
4951
console-setup \

‎system/cuos/init.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ configure_network() {
255255
else
256256
interfaces_mac["$name"]=""
257257
fi
258+
259+
if command -v ethtool >/dev/null; then
260+
ethtool -s "$name" wol g || true
261+
fi
258262
done
259263

260264

0 commit comments

Comments
 (0)