This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Vadim Zaliva [email protected] | |
# based on https://gist.github.com/hadess/6847281 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thinkpad T440 | |
# postconditions: | |
# 1) status should be enabled: | |
# cat /proc/acpi/ibm/fan | |
# 2) No errors in systemd logs: | |
# journalctl -u thinkfan.service -f | |
services = { | |
thinkfan = { |