From 67832bea31c3c98d0ba93354db1254f8d03b0fc9 Mon Sep 17 00:00:00 2001 From: Nikita Skryabin Date: Thu, 5 Sep 2024 16:26:12 +0300 Subject: [PATCH] refactor: switch model detection to use /tmp/sysinfo/model --- getdomains-check.sh | 4 ++-- getdomains-install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/getdomains-check.sh b/getdomains-check.sh index 4cec9ad..ffc84fa 100755 --- a/getdomains-check.sh +++ b/getdomains-check.sh @@ -19,7 +19,7 @@ output_21() { } # System Details -MODEL=$(grep machine /proc/cpuinfo | cut -d ':' -f 2) +MODEL=$(cat /tmp/sysinfo/model) RELEASE=$(grep OPENWRT_RELEASE /etc/os-release | awk -F '"' '{print $2}') printf "\033[34;1mModel:$MODEL\033[0m\n" printf "\033[34;1mVersion: $RELEASE\033[0m\n" @@ -462,4 +462,4 @@ fi # Info echo -e "\nTelegram channel: https://t.me/itdoginfo" -echo "Telegram chat: https://t.me/itdogchat" \ No newline at end of file +echo "Telegram chat: https://t.me/itdogchat" diff --git a/getdomains-install.sh b/getdomains-install.sh index 0c8ca22..0d0be7c 100755 --- a/getdomains-install.sh +++ b/getdomains-install.sh @@ -893,7 +893,7 @@ add_internal_wg() { } # System Details -MODEL=$(grep machine /proc/cpuinfo | cut -d ':' -f 2) +MODEL=$(cat /tmp/sysinfo/model) RELEASE=$(grep OPENWRT_RELEASE /etc/os-release | awk -F '"' '{print $2}') printf "\033[34;1mModel:$MODEL\033[0m\n" printf "\033[34;1mVersion: $RELEASE\033[0m\n"