diff --git a/plugins/if_ b/plugins/if_ index f9cca09..250fea9 100644 --- a/plugins/if_ +++ b/plugins/if_ @@ -15,7 +15,7 @@ config_if() { echo "up.min 0" echo "up.negative down" echo "up.cdef up,8,*" - if ethtool $1 >/dev/null 2>&1; then + if ethtool $1 | grep -q Speed; then MAX=$(($(ethtool $1 | grep Speed | sed -e 's/[[:space:]]\{1,\}/ /g' -e 's/^ //' -e 's/M.*//' | cut -d\ -f2) * 1000000)) echo "up.max $MAX" echo "down.max $MAX"