Skip to content

Instantly share code, notes, and snippets.

@anlai
Created November 18, 2020 06:44
Show Gist options
  • Save anlai/b07825dc8518a55ae273ebf3a01126be to your computer and use it in GitHub Desktop.
Save anlai/b07825dc8518a55ae273ebf3a01126be to your computer and use it in GitHub Desktop.
Set fanspeed on Lenovo SA120 on Unraid
#!/bin/bash
# Script to change the fanspeed of the Lenovo SA120 server
# Depends on:
# sg3_utils https://slackware.pkgs.org/14.2/slackware-x86_64/sg3_utils-1.42-x86_64-1.txz.html
# fancontrol.py https://github.com/AndrewX192/lenovo-sa120-fanspeed-utility
SPEED=${1:-2}
installpkg sg3_utils-1.42-x86_64-1.txz
python ./fancontrol.py $SPEED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment