From fd4dc893609d29c14e4e8eb1229cb00b6b46a964 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 13 Jun 2024 17:55:33 +0300 Subject: [PATCH] auto setup_md5 --- blockcheck.sh | 2 -- common/base.sh | 2 ++ install_easy.sh | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/blockcheck.sh b/blockcheck.sh index e3e961c..8d45704 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -48,8 +48,6 @@ PF_RULES_SAVE=/tmp/pf-zapret-save.conf unset ALL_PROXY -setup_md5 - killwait() { # $1 - signal (-9, -2, ...) diff --git a/common/base.sh b/common/base.sh index 1ab51ca..959db96 100644 --- a/common/base.sh +++ b/common/base.sh @@ -277,6 +277,7 @@ replace_char() setup_md5() { + [ -n "$MD5" ] && return MD5=md5sum exists $MD5 || MD5=md5 } @@ -285,6 +286,7 @@ random() { # $1 - min, $2 - max local r rs + setup_md5 if [ -c /dev/urandom ]; then read rs