Pin Athena LAN interface by permanent MAC
This commit is contained in:
@@ -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)"
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
[Match]
|
||||
PermanentMACAddress=58:11:22:BB:AD:0C
|
||||
|
||||
[Link]
|
||||
Name=lan0
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user