Add a thinkfan.conf generating thingy

This commit is contained in:
Dan Buch 2018-10-16 10:23:35 -04:00
parent dc5c99aa62
commit fc2da6130a
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

22
thinkfan-confgen Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -o errexit
main() {
find /sys -type f -name 'temp*_input' | while read -r line; do
echo "hwmon ${line}"
done
cat <<'EOF'
tp_fan /proc/acpi/ibm/fan
(0, 0, 43)
(1, 41, 46)
(2, 44, 49)
(3, 47, 52)
(4, 50, 55)
(5, 53, 58)
(7, 56, 32767)
EOF
}
main "${@}"