Tweaking thinkfan-confgen a bit

main
Dan Buch 6 years ago
parent b9e12d36e2
commit 570b35fa02
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

@ -1,7 +1,14 @@
#!/usr/bin/env bash
set -o errexit
set -o pipefail
main() {
if [[ -f "${1}" ]]; then
exec 1>"${1}"
fi
printf "# thinkfan-confgen created %s\n" "$(date -u)"
find /sys -type f -name 'temp*_input' | while read -r line; do
echo "hwmon ${line}"
done

Loading…
Cancel
Save