[status] fix: use the right ethernet iface in sb-internet
This commit is contained in:
parent
48ef15d12b
commit
fdbb3f616a
@ -18,7 +18,7 @@ case "$state" in
|
|||||||
INTERFACE_DISABLED) str="WIFI DOWN" ;;
|
INTERFACE_DISABLED) str="WIFI DOWN" ;;
|
||||||
*) str="$(printf "NO WIFI")";;
|
*) str="$(printf "NO WIFI")";;
|
||||||
esac
|
esac
|
||||||
eth="$(cat /sys/class/net/eth0/operstate &> /dev/null)"
|
eth="$(cat /sys/class/net/enx5c60baa6c9bb/operstate &> /dev/null)"
|
||||||
if [ "up" = "$eth" ]; then
|
if [ "up" = "$eth" ]; then
|
||||||
str="$(printf "%s / " "$str")"
|
str="$(printf "%s / " "$str")"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user