Buffalo NAS-Central Forums
http://forum.buffalo.nas-central.org/

LS400 series speed fan control
http://forum.buffalo.nas-central.org/viewtopic.php?f=81&t=44437
Page 1 of 1

Author:  Antonas [ Sun Apr 23, 2017 7:29 pm ]
Post subject:  LS400 series speed fan control

Lüfterregelung für die 400er Serie
Code:
# vi /etc/cron/cron.d/hddtemp.sh

create
Code:
HD_TEMP=`smartctl -A /dev/sda | awk '/^194/ { print($10) }'`

if [ $HD_TEMP -lt 40 ]; then
   if [ $HD_TEMP -lt 35 ]; then
      echo slow > /proc/buffalo/gpio/fan/control
   else
      echo fast > /proc/buffalo/gpio/fan/control
   fi
else
   echo full > /proc/buffalo/gpio/fan/control
fi

Code:
# chmod +x /etc/cron/cron.d/hddtemp.sh
# crontab -e

add line
Code:
*/5 * * * * /etc/cron/cron.d/hddtemp.sh


manual check fan status
Code:
# cat /proc/buffalo/gpio/fan/control


Linux vi command

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/