Add setup instructions for argon fan

This commit is contained in:
KemoNine 2020-09-04 19:21:00 -04:00
parent 76d8874eb7
commit f577430bd8
2 changed files with 31 additions and 0 deletions

View file

@ -12,6 +12,7 @@ Items marked ```REQUIRED``` are assumed to be setup and working. You've been war
* [Base Firmware (REQUIRED)](base.md)
* [Finalize Setup (REQUIRED)](finalize_setup.md)
* [Argon Fan Setup (VERY SMART)](fan.md)
* [Setup swap (REQUIRED)](swap.md)
* [Additional Networking Setup (REQUIRED)](networking.md)
* [Automatic WiFi Setup (VERY SMART)](auto_wifi_setup.md)

30
docs/fan.md Normal file
View file

@ -0,0 +1,30 @@
# Argon Fan
The below commands will setup the Argon Fan we recommend as a cooling solution.
## Setup
``` sh
DL_URL=$(curl https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases | jq -r '.[0].assets[] | select(.name == "fan") | .browser_download_url')
wget $DL_URL -O /usr/local/bin/pf-fan
chmod a+x /usr/local/bin/pf-fan
cat > /etc/systemd/system/argon-fan.service <<EOF
[Unit]
Description=Manage the argon fan attached to this device
[Service]
Type=simple
User=root
ExecStart=/usr/local/bin/pf-fan
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable --now argon-fan
```