KURO-NAS-T4:~# ls -l /usr/local/sbin/ total 192 -rwxr-xr-x 1 root root 121288 Jul 11 2009 clientUtil_server -rwxr-xr-x 1 root root 62456 Jul 11 2009 miconapl KURO-NAS-T4:~#ある。
KURO-NAS-T4:~# miconapl -a fan_get_speed #[miconapl.fan_get_speed] fan_rpm=2040 KURO-NAS-T4:~#
KURO-NAS-T4:~# miconapl -a fan_set_speed stop KURO-NAS-T4:~# miconapl -a fan_get_speed #[miconapl.fan_get_speed] fan_rpm=1310 KURO-NAS-T4:~# miconapl -a fan_get_speed #[miconapl.fan_get_speed] fan_rpm=0 KURO-NAS-T4:~#少しして止まった。音も静かになった。
KURO-NAS-T4:~# miconapl -a fan_set_speed slow KURO-NAS-T4:~# !-2 miconapl -a fan_get_speed #[miconapl.fan_get_speed] fan_rpm=2390 KURO-NAS-T4:~# !! miconapl -a fan_get_speed #[miconapl.fan_get_speed] fan_rpm=1930 KURO-NAS-T4:~# !! miconapl -a fan_get_speed #[miconapl.fan_get_speed] fan_rpm=1960 KURO-NAS-T4:~# !! miconapl -a fan_get_speed #[miconapl.fan_get_speed] fan_rpm=1950 KURO-NAS-T4:~#制御できているようだ。
KURO-NAS-T4:~# miconapl -a temp_get #[miconapl.temp_get] temp=37 KURO-NAS-T4:~#取れている(?)
KURO-NAS-T4:~# vi /usr/local/sbin/fancontrol : : KURO-NAS-T4:~# cat !$ 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 KURO-NAS-T4:~# vi /etc/fancontrol.conf : : KURO-NAS-T4:~# cat !$ 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 KURO-NAS-T4:~#
KURO-NAS-T4:~# sh /usr/local/sbin/fancontrol 37 fan_set_speed fast KURO-NAS-T4:~#ちょっと閾値を下げる
KURO-NAS-T4:~# vi /etc/fancontrol.conf : : KURO-NAS-T4:~# cat !$ 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=45 MID=40 LOW=20 KURO-NAS-T4:~# !sh sh /usr/local/sbin/fancontrol 37 fan_set_speed slow KURO-NAS-T4:~#
KURO-NAS-T4:~# crontab -e : : KURO-NAS-T4:~# crontab -l 36 13 * * * /etc/webmin/cron/tempdelete.pl */5 * * * * nice /bin/sh /usr/local/sbin/fancontrol 2>/dev/null 1>/dev/null KURO-NAS-T4:~#nano だった。
|
← 標準ファーム で ps |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 電源 SW / Power SW |