update wol
All checks were successful
Generate README / build (push) Successful in 7s

This commit is contained in:
2025-12-02 23:36:00 -05:00
parent 94d2c711ce
commit 6b73b5c79a

View File

@@ -193,10 +193,10 @@ fi
info "Verifying WOL is enabled on ${PRIMARY_IF}..." info "Verifying WOL is enabled on ${PRIMARY_IF}..."
VERIFY_OUTPUT=$(ethtool "$PRIMARY_IF") VERIFY_OUTPUT=$(ethtool "$PRIMARY_IF")
WAKE_ON=$(awk -F: '/Wake-on/ {gsub(/ /,"",$2); print $2}' <<<"$VERIFY_OUTPUT") WAKE_ON=$(awk -F: '$1 ~ /^[[:space:]]*Wake-on$/ {gsub(/ /,"",$2); print $2; exit}' <<<"$VERIFY_OUTPUT")
if [[ "$WAKE_ON" != "g" ]]; then if [[ "$WAKE_ON" != *g* ]]; then
err "WOL verification failed: Wake-on is '${WAKE_ON}', expected 'g'. Check BIOS settings and /etc/network/interfaces." err "WOL verification failed: Wake-on is '${WAKE_ON}', expected to include 'g'. Check BIOS settings and /etc/network/interfaces."
fi fi
info "WOL verification succeeded: Wake-on is '${WAKE_ON}'." info "WOL verification succeeded: Wake-on is '${WAKE_ON}'."