Files
vanlink/failover/50-disable-eee
T
2026-06-28 15:09:28 -04:00

9 lines
330 B
Bash
Executable File

#!/bin/sh
# Disable EEE on USB ethernet (r8152): its idle power-save parks the backup WAN link
# and breaks van-failover health probes. See wayback-campervan-ap memory.
iface="$1"; action="$2"
[ "$action" = "up" ] || exit 0
case "$iface" in
en*|eth*) /usr/sbin/ethtool --set-eee "$iface" eee off >/dev/null 2>&1 || true ;;
esac