From 93da9997359e161f5ae7734d225cec24f1e26ed0 Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 12 Jan 2022 22:38:31 +0300 Subject: [PATCH] blockcheck: kldstat without grep --- blockcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockcheck.sh b/blockcheck.sh index 6d068ca..a6e5cef 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -160,7 +160,7 @@ check_system() freebsd_module_loaded() { # $1 - module name - kldstat | grep -q "${1}.ko" + kldstat -qn "${1}.ko" } freebsd_modules_loaded() { @@ -268,7 +268,7 @@ curl_supports_tls13() curl_supports_tlsmax() { # supported only in OpenSSL - curl --version | grep -q OpenSSL || return 1 + curl --version | grep -Fq OpenSSL || return 1 # supported since curl 7.54 curl --tls-max 1.2 -Is -o /dev/null http://$LOCALHOST_IPT:65535 2>/dev/null # return code 2 = init failed. likely bad command line options