From d9a38142821f709ae9fe0bdcd3fa4db54e38b4e9 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Thu, 22 Jan 2015 09:20:13 +0100 Subject: [PATCH] 20130706: update --- bin/cron/temperature_hdd_log.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/cron/temperature_hdd_log.sh b/bin/cron/temperature_hdd_log.sh index 794c705..cf13cdb 100755 --- a/bin/cron/temperature_hdd_log.sh +++ b/bin/cron/temperature_hdd_log.sh @@ -8,9 +8,13 @@ for HDD in sda sdb sdc sdd sde sdf do #TEMPERATURE=`awk '{print $NF}' /root/tmp/hddtemp` if [ "$HDD" == "sde" ]; then - TEMPERATURE=`/usr/sbin/smartctl -A /dev/sde | grep Airflow_Temperature_Cel | awk '{print $10}'` + TEMPERATURE=`/usr/sbin/smartctl -A /dev/sde | grep Temperature_Cel | awk '{print $10}'` elif [ "$HDD" == "sdf" ]; then - TEMPERATURE=`/usr/sbin/smartctl -A /dev/sdf | grep Airflow_Temperature_Cel | awk '{print $10}'` + TEMPERATURE=`/usr/sbin/smartctl -A /dev/sdf | grep Temperature_Cel | awk '{print $10}'` + elif [ "$HDD" == "sdc" ]; then + TEMPERATURE=`/usr/sbin/smartctl -A /dev/sdc | grep Temperature_Cel | awk '{print $10}'` + elif [ "$HDD" == "sdd" ]; then + TEMPERATURE=`/usr/sbin/smartctl -A /dev/sdd | grep Temperature_Cel | awk '{print $10}'` else RAWTEMP=`/usr/sbin/hddtemp /dev/$HDD` #echo $RAWTEMP