mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
autocore-arm: get rip of lm-sensor to speedup display index.html
This commit is contained in:
parent
f5a8fa17f9
commit
84d1b74472
@ -23,8 +23,7 @@ DEFAULT_PACKAGES:=\
|
||||
opkg \
|
||||
uci \
|
||||
uclient-fetch \
|
||||
urandom-seed \
|
||||
urngd
|
||||
urandom-seed
|
||||
|
||||
ifneq ($(CONFIG_SELINUX),)
|
||||
DEFAULT_PACKAGES+=busybox-selinux procd-selinux
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user