Thank you for this guide.
I modified the script hddtemp_monitor.sh for use with seagate and WD drives. I have both and it seems that WD drives have an additional character which is recognized as a delimiter in awk:
From:
To:Code:HDTEMP=$($HDT $disk | awk '{ print $4}' | awk -F '°' '{ print $1}')
I thought that others may find use for it.Code:HDTEMP=$($HDT $disk | sed 's/\(.*\)://g' | awk -F '°' '{ print $1}')
Of course, if you had all seagate drives then you could just usethe following instead:
Again, thanks for the guide... very usefulCode:HDTEMP=$($HDT $disk | awk '{ print $3}' | awk -F '°' '{ print $1}')
EDIT: For the coretemp stuff, couldn't a default value be used instead of an additional conditional statement that checks for numbers?
Bookmarks