From 4dd27c848f30f6bdad815d1b7f8cefa56bff3d51 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 13 Jun 2024 15:42:12 +0300 Subject: [PATCH] blockcheck: mdig dns cache --- common/base.sh | 6 ++++++ install_easy.sh | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common/base.sh b/common/base.sh index 5ef723a..1ab51ca 100644 --- a/common/base.sh +++ b/common/base.sh @@ -275,6 +275,12 @@ replace_char() echo "$@" | tr $a $b } +setup_md5() +{ + MD5=md5sum + exists $MD5 || MD5=md5 +} + random() { # $1 - min, $2 - max diff --git a/install_easy.sh b/install_easy.sh index f7f9995..8d16d98 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -24,8 +24,7 @@ GET_LIST="$IPSET_DIR/get_config.sh" [ -n "$TPPORT" ] || TPPORT=988 -MD5=md5sum -exists $MD5 || MD5=md5 +setup_md5 check_readonly_system() {