From: Johannes Truschnigg Date: Thu, 17 Mar 2022 18:57:19 +0000 (+0100) Subject: Also check for presence of `ip` and `tc` X-Git-Url: https://johannes.truschnigg.info/gitweb/?a=commitdiff_plain;h=580ebd7a285dcfb86c962bb7bdb50ba1fd531a72;p=sqm_lagthrottle Also check for presence of `ip` and `tc` --- diff --git a/lagdetect.sh b/lagdetect.sh index 51cf489..b07bbb2 100755 --- a/lagdetect.sh +++ b/lagdetect.sh @@ -85,7 +85,7 @@ return 1 } -for p in traceroute fping awk +for p in traceroute fping awk tc ip do type "${p}" >/dev/null || { printf 'FATAL: Required program "%s" not installed.\n' "${p}" >&2; exit 1; } done