ThomasKaiser 2017-09-18 09:19:11 +02:00
parent a10c59a8b9
commit fa3c7e9dcd
2 changed files with 4 additions and 5 deletions

View File

@ -61,9 +61,8 @@ prepare_temp_monitoring() {
# sun7i legacy
ln -fs /sys/devices/platform/a20-tp-hwmon/temp1_input /etc/armbianmonitor/datasources/soctemp
else
# all other boards/kernels use the same sysfs node, only one board differs with all kernels:
# RK3288/rockchip: here thermal_zone1 is cpu, thermal_zone2 is gpu_thermal.
[[ ${LINUXFAMILY} == rockchip ]] && THERMAL_ZONE="thermal_zone1" || THERMAL_ZONE="thermal_zone0"
# all other boards/kernels use the same sysfs node except of Actions Semi S500:
[[ ${LINUXFAMILY} == s500 ]] && THERMAL_ZONE="thermal_zone1" || THERMAL_ZONE="thermal_zone0"
ln -fs /sys/devices/virtual/thermal/${THERMAL_ZONE}/temp /etc/armbianmonitor/datasources/soctemp
fi
} # prepare_temp_monitoring
@ -266,7 +265,7 @@ log_hardware_info() {
echo -e "\n\n\n$(date) | ${BOARD_NAME} | ${$VERSION} | ${DISTRO_ARCH} | ${CPU_ARCH} | ${KERNELID}" >>${Log}
else
echo "$(date) | ${BOARD_NAME} | ${$VERSION} | ${DISTRO_ARCH} | ${CPU_ARCH} | ${KERNELID}" >>${Log}
chmod 755 ${Log}
chmod 644 ${Log}
fi
echo -e "\n### dmesg:\n" >>${Log}
cat "${TMPFILE}" >>${Log}

View File

@ -151,7 +151,7 @@ case "$1" in
DISTRO_ARCH=$(dpkg --print-architecture)
KERNELID=$(uname -r)
echo "$(date) | ${BOARD_NAME} | ${$VERSION} | ${DISTRO_ARCH} | ${CPU_ARCH} | ${KERNELID}" >>${Log}
chmod 755 ${Log}
chmod 644 ${Log}
rootfstype=$(findmnt -n -o FSTYPE /)
rootpart=$(findmnt -n -o SOURCE /) # i.e. /dev/mmcblk0p1