autocore-arm: get rip of lm-sensor to speedup display index.html

This commit is contained in:
coolsnowwolf 2021-06-22 12:57:40 +08:00
parent f5a8fa17f9
commit 84d1b74472
3 changed files with 4 additions and 5 deletions

View File

@ -23,8 +23,7 @@ DEFAULT_PACKAGES:=\
opkg \
uci \
uclient-fetch \
urandom-seed \
urngd
urandom-seed
ifneq ($(CONFIG_SELINUX),)
DEFAULT_PACKAGES+=busybox-selinux procd-selinux

View File

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

View File

@ -15,7 +15,7 @@ else
fi
if grep -q "ipq40xx" "/etc/openwrt_release"; then
sys_temp="$(sensors | grep -Eo '\+[0-9]+.+C' | sed ':a;N;$!ba;s/\n/ /g;s/+//g')"
sys_temp="$(cat /sys/class/ieee80211/phy*/device/hwmon/hwmon*/temp1_input | sed 's/000/.0°C/')"
else
sys_temp="$(awk '{ printf("%.1f °C", $0 / 1000) }' /sys/class/thermal/thermal_zone0/temp)"
fi