[status] fix: use the right ethernet iface in sb-internet

This commit is contained in:
David JULIEN 2023-01-20 10:42:08 +01:00
parent 48ef15d12b
commit fdbb3f616a
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ case "$state" in
INTERFACE_DISABLED) str="WIFI DOWN" ;;
*) str="$(printf "NO WIFI")";;
esac
eth="$(cat /sys/class/net/eth0/operstate &> /dev/null)"
eth="$(cat /sys/class/net/enx5c60baa6c9bb/operstate &> /dev/null)"
if [ "up" = "$eth" ]; then
str="$(printf "%s / " "$str")"
fi