refactor: switch model detection to use /tmp/sysinfo/model

This commit is contained in:
Nikita Skryabin
2024-09-05 16:26:12 +03:00
parent ceac5597ac
commit 67832bea31
2 changed files with 3 additions and 3 deletions

View File

@@ -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"
echo "Telegram chat: https://t.me/itdogchat"

View File

@@ -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"