summarylogtreecommitdiffstats
path: root/thinkfan-ui.install
blob: 1b69c5ae5fba9722751f392227e6b6ca11113d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

pre_install() {
    # enable fan control in thinkpad_acpi kernel module
    echo "options thinkpad_acpi fan_control=1" > /etc/modprobe.d/thinkpad_acpi.conf

    # reload thinkpad_acpi kernel module
    modprobe -r thinkpad_acpi
    modprobe thinkpad_acpi

}

pre_remove() {
    find /opt/thinkfan-ui -type f -iname \*.pyc -delete
    find /opt/thinkfan-ui -type d -iname __pycache__ -delete
}