Don't add thinkpad_hwmon sources for thinkfan

This commit is contained in:
Dan Buch 2020-01-12 20:39:17 -05:00
parent c4c4d338f3
commit 7c5a84ad72
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

View File

@ -20,6 +20,9 @@ main() {
printf '# THINKFAN_STEP=%s\n\n' "${THINKFAN_STEP}"
find /sys -type f -name 'temp*_input' | while read -r line; do
if [[ "${line}" =~ thinkpad_hwmon ]]; then
continue
fi
printf 'hwmon %s\n' "${line}"
done