From 580ebd7a285dcfb86c962bb7bdb50ba1fd531a72 Mon Sep 17 00:00:00 2001 From: Johannes Truschnigg Date: Thu, 17 Mar 2022 19:57:19 +0100 Subject: [PATCH] Also check for presence of `ip` and `tc` --- lagdetect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5