mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-06 08:20:34 +05:00
blockcheck: kldstat without grep
This commit is contained in:
parent
31d0a348fe
commit
93da999735
@ -160,7 +160,7 @@ check_system()
|
|||||||
freebsd_module_loaded()
|
freebsd_module_loaded()
|
||||||
{
|
{
|
||||||
# $1 - module name
|
# $1 - module name
|
||||||
kldstat | grep -q "${1}.ko"
|
kldstat -qn "${1}.ko"
|
||||||
}
|
}
|
||||||
freebsd_modules_loaded()
|
freebsd_modules_loaded()
|
||||||
{
|
{
|
||||||
@ -268,7 +268,7 @@ curl_supports_tls13()
|
|||||||
curl_supports_tlsmax()
|
curl_supports_tlsmax()
|
||||||
{
|
{
|
||||||
# supported only in OpenSSL
|
# supported only in OpenSSL
|
||||||
curl --version | grep -q OpenSSL || return 1
|
curl --version | grep -Fq OpenSSL || return 1
|
||||||
# supported since curl 7.54
|
# supported since curl 7.54
|
||||||
curl --tls-max 1.2 -Is -o /dev/null http://$LOCALHOST_IPT:65535 2>/dev/null
|
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
|
# return code 2 = init failed. likely bad command line options
|
||||||
|
Loading…
Reference in New Issue
Block a user