Pin Athena LAN interface by permanent MAC

This commit is contained in:
Mikei386
2026-08-23 07:04:48 +02:00
parent 2ef894160a
commit 0887e4ba90
6 changed files with 77 additions and 6 deletions
+8
View File
@@ -32,6 +32,14 @@ else
fail "nvidia-smi fehlt"
fi
if [[ -e /sys/class/net/lan0 ]] && \
[[ "$(< /sys/class/net/lan0/address)" == "58:11:22:bb:ad:0c" ]] && \
[[ "$(< /sys/class/net/lan0/operstate)" == "up" ]]; then
pass "stabiles LAN-Interface lan0 aktiv (58:11:22:bb:ad:0c)"
else
fail "stabiles LAN-Interface lan0 fehlt, ist down oder hat die falsche MAC"
fi
container_healthy() {
local name=$1 state health
state="$(docker inspect --format '{{.State.Status}}' "$name" 2>/dev/null || true)"
+5
View File
@@ -0,0 +1,5 @@
[Match]
PermanentMACAddress=58:11:22:BB:AD:0C
[Link]
Name=lan0
+2 -2
View File
@@ -1,3 +1,3 @@
#!/bin/sh
[ "${IFACE:-}" = "enp7s0" ] || exit 0
/usr/sbin/ethtool -s enp7s0 wol g
[ "${IFACE:-}" = "lan0" ] || exit 0
/usr/sbin/ethtool -s lan0 wol g