Ubuntu ThinkPad postinstall script
#!/bin/sh # Do a root check if [ $(id -u) -ne 0 ]; then echo "This script must be run as root."; exit 99; fi # Install device-specific tools apt install -y ethtool flashrom inxi lm-sensors thinkfan wavemon # Set wlan led blink echo 'options ath9k blink=1' > /etc/modprobe.d/ath9k.conf # Enable kernel fan control echo 'options thinkpad_acpi fan_control=1' > /etc/modprobe.d/thinkpad_acpi.conf