tswxl:~# /usr/local/sbin/miconapl -a temp_get #[miconapl.temp_get] temp=25 tswxl:~# /usr/local/sbin/miconapl -a temp_get #[miconapl.temp_get] temp=25 tswxl:~#25℃ではある。常に25 を返しているだけかも知れない。
tswxl:~# /usr/local/sbin/miconapl -a fan_set_speed full tswxl:~# /usr/local/sbin/miconapl -a fan_set_speed fast tswxl:~# /usr/local/sbin/miconapl -a fan_set_speed slow tswxl:~# /usr/local/sbin/miconapl -a fan_set_speed stop tswxl:~#どんどん音が小さくなる。
tswxl:~# 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 tswxl:~# 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 tswxl:~#
tswxl:~# /bin/sh /usr/local/sbin/fancontrol 28 fan_set_speed slow tswxl:~#
tswxl:~# crontab -e : : tswxl:~# crontab -l # m h dom mon dow command */5 * * * * nice /bin/sh /usr/local/sbin/fancontrol 2>/dev/null 1>/dev/null tswxl:~#
|
← 電源SWでシャットダウン |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ パッケージのアップデート |