Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun Nov 19, 2017 11:44 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun Apr 23, 2017 7:29 pm 
Offline
Newbie
User avatar

Joined: Tue Nov 01, 2016 1:17 pm
Posts: 42
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited