Commit 5cfee02b authored by Q-Max's avatar Q-Max
Browse files

add support to parse intel temp from prog. sensors

parent 5055778e
#!/bin/bash
if [ `which sensors` ]; then
returnString=`sensors`
#amd
if [[ "${returnString/"k10"}" != "${returnString}" ]] ; then
echo ${returnString##*k10} | cut -d ' ' -f 6 | cut -c 2- | cut -c 1-4
elif [[ "${returnString/"ore"}" != "${returnString}" ]] ; then
echo 90
#intel
elif [[ "${returnString/"core"}" != "${returnString}" ]] ; then
fromcore=${returnString##*"coretemp"}
echo ${fromcore##*Physical} | cut -d ' ' -f 3 | cut -c 2-5
fi
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment