From f0d796aa5bcc6b8fabd844b736d4857bc8605eb5 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Sun, 7 Feb 2021 01:32:40 +0800 Subject: [PATCH] autocore: logic improvements Signed-off-by: CN_SZTL --- package/lean/autocore/files/arm/sbin/cpuinfo | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/lean/autocore/files/arm/sbin/cpuinfo b/package/lean/autocore/files/arm/sbin/cpuinfo index 148c6d5674..255a69ac38 100755 --- a/package/lean/autocore/files/arm/sbin/cpuinfo +++ b/package/lean/autocore/files/arm/sbin/cpuinfo @@ -13,8 +13,7 @@ elif grep -q "mvebu" "/etc/openwrt_release"; then elif [ -e "/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq" ]; then cpu_freq="$(expr $(cat "/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq") / 1000)MHz" elif [ -e "/sys/devices/system/cpu/cpufreq/policy4/cpuinfo_cur_freq" ]; then - big_cpu_freq="$(expr $(cat "/sys/devices/system/cpu/cpufreq/policy4/cpuinfo_cur_freq") / 1000)" - [ -n "${big_cpu_freq}" ] && big_cpu_freq="${big_cpu_freq}MHz " + big_cpu_freq="$(expr $(cat "/sys/devices/system/cpu/cpufreq/policy4/cpuinfo_cur_freq") / 1000)MHz " fi if grep -q "bcm27xx" "/etc/openwrt_release"; then