mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 00:05:10 +01:00
20130706: update
This commit is contained in:
@@ -8,9 +8,13 @@ for HDD in sda sdb sdc sdd sde sdf
|
|||||||
do
|
do
|
||||||
#TEMPERATURE=`awk '{print $NF}' /root/tmp/hddtemp`
|
#TEMPERATURE=`awk '{print $NF}' /root/tmp/hddtemp`
|
||||||
if [ "$HDD" == "sde" ]; then
|
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
|
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
|
else
|
||||||
RAWTEMP=`/usr/sbin/hddtemp /dev/$HDD`
|
RAWTEMP=`/usr/sbin/hddtemp /dev/$HDD`
|
||||||
#echo $RAWTEMP
|
#echo $RAWTEMP
|
||||||
|
|||||||
Reference in New Issue
Block a user