Update sys_info.sh

This commit is contained in:
StressOzz authored and GitHub committed 2025-11-30 19:50:17 +05:00
1 parent b4d67d76eb
commit 4f15f66d78
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ if ! command -v curl >/dev/null 2>&1; then
echo -e "\n${GREEN}Устанавливаем ${NC}curl" echo -e "\n${GREEN}Устанавливаем ${NC}curl"
opkg update >/dev/null 2>&1 && opkg install curl >/dev/null 2>&1 opkg update >/dev/null 2>&1 && opkg install curl >/dev/null 2>&1
fi fi
clear; echo -e "\n${GREEN}===== Информация о системе =====${NC}" clear; echo -e "${GREEN}===== Информация о системе =====${NC}"
MODEL=$(cat /tmp/sysinfo/model) MODEL=$(cat /tmp/sysinfo/model)
ARCH=$(sed -n "s/.*ARCH='\(.*\)'/\1/p" /etc/openwrt_release) ARCH=$(sed -n "s/.*ARCH='\(.*\)'/\1/p" /etc/openwrt_release)
OWRT=$(sed -n "s/.*OpenWrt \([0-9.]*\).*/\1/p" /etc/openwrt_release) OWRT=$(sed -n "s/.*OpenWrt \([0-9.]*\).*/\1/p" /etc/openwrt_release)