autocore-arm: drop lm-sensor for ipq806x

This commit is contained in:
coolsnowwolf 2021-06-22 13:18:56 +08:00
parent 84d1b74472
commit 24714104cc
2 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=autocore
PKG_VERSION:=1
PKG_RELEASE:=38
PKG_RELEASE:=39
include $(INCLUDE_DIR)/package.mk
@ -17,8 +17,7 @@ define Package/autocore-arm
TITLE:=Arm auto core loadbalance script.
MAINTAINER:=CN_SZTL
DEPENDS:=@(TARGET_bcm27xx||TARGET_bcm53xx||TARGET_ipq40xx||TARGET_ipq806x||TARGET_mvebu||TARGET_rockchip) \
+TARGET_bcm27xx:bcm27xx-userland +TARGET_bcm53xx:nvram \
+TARGET_ipq806x:lm-sensors
+TARGET_bcm27xx:bcm27xx-userland +TARGET_bcm53xx:nvram
VARIANT:=arm
endef

View File

@ -15,9 +15,9 @@ else
fi
if grep -q "ipq40xx" "/etc/openwrt_release"; then
sys_temp="$(cat /sys/class/ieee80211/phy*/device/hwmon/hwmon*/temp1_input | sed 's/000/.0°C/')"
sys_temp="$(awk '{ printf("%.1f°C ", $0 / 1000) }' /sys/class/ieee80211/phy*/device/hwmon/hwmon*/temp1_input)"
else
sys_temp="$(awk '{ printf("%.1f °C", $0 / 1000) }' /sys/class/thermal/thermal_zone0/temp)"
sys_temp="$(awk '{ printf("%.1f°C ", $0 / 1000) }' /sys/class/thermal/thermal_zone0/temp)"
fi
echo -n "${cpu_arch} x ${cpu_cores} (${cpu_freq}, ${sys_temp})"