ude:~# cat /usr/local/sbin/fancontrol
#!/bin/sh
# LS-GL, HS-DHGL, KURO-BOX/Pro Fancontrol
# (C) Copyright Yasunari YAMASHITA 2007. All Rights Reserved.
PATH=$PATH:/usr/sbin
# stop -> LOW |- slow -> MID |- fast -> HIGH |- full
HIGH=40
MID=30
LOW=20
if [ -f /etc/fancontrol.conf ]
then
        . /etc/fancontrol.conf
fi
#       ude:/usr/local/sbin# /usr/local/sbin/miconapl -a temp_get
#       #[miconapl.temp_get]
#       temp=45
CURTEMP=`/usr/local/sbin/miconapl -a temp_get | sed -n -e 's/temp=//p'`
echo $CURTEMP
if [ $CURTEMP -gt $HIGH ] # full
then
        /usr/local/sbin/miconapl -a fan_set_speed full
        echo fan_set_speed full
elif [ $CURTEMP -gt $MID ] # fast
then
        /usr/local/sbin/miconapl -a fan_set_speed fast
        echo fan_set_speed fast
elif [ $CURTEMP -gt $LOW ] # slow
then
        /usr/local/sbin/miconapl -a fan_set_speed slow
        echo fan_set_speed slow
else                       # stop
        /usr/local/sbin/miconapl -a fan_set_speed stop
        echo fan_set_speed stop
fi
ude:~# cat /etc/fancontrol.conf
#
# LS-GL, HS-DHGL, KURO-BOX/Pro Fancontrol configuration file
# (C) Copyright Yasunari YAMASHITA 2007. All Rights Reserved.
# stop -> LOW |- slow -> MID |- fast -> HIGH |- full
HIGH=40
MID=30
LOW=20
ude:~#
ude:~# crontab -l */5 * * * * nice /bin/sh /usr/local/sbin/fancontrol 2>/dev/null 1>/dev/null ude:~#
室温と HDD の機種、アクセス頻度にもよるのだろうが、 37 ℃、fast で落ち着いている
| 
 | 
 | 
| ← LS-GL が熱い | ハックの記録 LinkStation/玄箱 をハックしよう | → LS-GLシリーズ ファームウェア アップデータ Ver.1.10 |