These three paths are wrong, I found these three:
CPU_TEMP=cut -c1-2 /sys/class/hwmon/hwmon1/temp1_input
DDR_TEMP=cut -c1-2 /sys/class/hwmon/hwmon0/temp1_input
WIFI_TEMP=cut -c1-2 /sys/class/hwmon/hwmon0/temp2_input
The text was updated successfully, but these errors were encountered:
hwmon device numbers may depend on the loaded drivers, or their load order.
I would recommend accessing them through a stable path under /sys/devices with a wildcard for the hwmon number. I don't have an mvebu device at hand to recommend concrete paths - on my x86 system I would use something like "/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input".
dunkeng:
[openwrt/openwrt.git] / target / linux / mvebu / base-files / sbin / fan_ctrl.sh
CPU_TEMP=
cut -c1-2 /sys/class/hwmon/hwmon2/temp1_input
DDR_TEMP=
cut -c1-2 /sys/class/hwmon/hwmon1/temp1_input
WIFI_TEMP=
cut -c1-2 /sys/class/hwmon/hwmon1/temp2_input
These three paths are wrong, I found these three:
CPU_TEMP=
cut -c1-2 /sys/class/hwmon/hwmon1/temp1_input
DDR_TEMP=
cut -c1-2 /sys/class/hwmon/hwmon0/temp1_input
WIFI_TEMP=
cut -c1-2 /sys/class/hwmon/hwmon0/temp2_input
The text was updated successfully, but these errors were encountered: