autocore-arm: remove the dependency on lm-sensors
(cherry picked from commit aeff8e17c8)
This commit is contained in:
parent
c960e51b62
commit
dd546b4f85
@ -21,8 +21,7 @@ define Package/autocore-arm
|
||||
MAINTAINER:=CN_SZTL
|
||||
DEPENDS:=@(TARGET_bcm27xx||TARGET_bcm53xx||TARGET_ipq40xx||TARGET_ipq806x||TARGET_mvebu||TARGET_sunxi||TARGET_rockchip) \
|
||||
+TARGET_bcm27xx:bcm27xx-userland \
|
||||
+TARGET_bcm53xx:nvram \
|
||||
+TARGET_ipq40xx:lm-sensors
|
||||
+TARGET_bcm53xx:nvram
|
||||
VARIANT:=arm
|
||||
endef
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ fi
|
||||
if grep -q "bcm27xx" "/etc/openwrt_release"; then
|
||||
cpu_temp="$(vcgencmd measure_temp | awk -F '=' '{print $2}' | awk -F "'" '{print $1}')°C"
|
||||
elif grep -q "ipq40xx" "/etc/openwrt_release"; then
|
||||
cpu_temp="$(sensors | grep -Eo '\+[0-9]+.+C' | sed ':a;N;$!ba;s/\n/ /g;s/+//g')"
|
||||
cpu_temp="$(awk '{printf("%.1f°C ", $0 / 1000)}' /sys/class/ieee80211/phy*/device/hwmon/hwmon*/temp1_input)"
|
||||
else
|
||||
[ -e "/sys/class/thermal/thermal_zone0/temp" ] && \
|
||||
cpu_temp="$(awk '{printf("%.1f°C", $0 / 1000)}' /sys/class/thermal/thermal_zone0/temp)"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user