auto setup_md5

This commit is contained in:
bol-van 2024-06-13 17:55:33 +03:00
parent 4dd27c848f
commit fd4dc89360
3 changed files with 2 additions and 4 deletions

View File

@ -48,8 +48,6 @@ PF_RULES_SAVE=/tmp/pf-zapret-save.conf
unset ALL_PROXY
setup_md5
killwait()
{
# $1 - signal (-9, -2, ...)

View File

@ -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 </dev/urandom
else

View File

@ -24,8 +24,6 @@ GET_LIST="$IPSET_DIR/get_config.sh"
[ -n "$TPPORT" ] || TPPORT=988
setup_md5
check_readonly_system()
{
local RO