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