mirror of
https://github.com/cmur2/munin-pcsensor.git
synced 2024-12-22 02:54:26 +01:00
Only use the first line of output
This commit is contained in:
parent
e70d6b59fd
commit
632b81b9f9
6
pcsensor
6
pcsensor
@ -18,13 +18,13 @@ if [ "${1}" = "config" ]; then
|
||||
echo "temp.label temperatue"
|
||||
echo "temp.type GAUGE"
|
||||
else
|
||||
TEMP=`${PCSENSOR} -cm`
|
||||
TEMP=`${PCSENSOR} -cm | head -n 1`
|
||||
if [[ $? != 0 ]]; then
|
||||
sleep 2
|
||||
TEMP=`${PCSENSOR} -cm`
|
||||
TEMP=`${PCSENSOR} -cm | head -n 1`
|
||||
if [[ $? != 0 ]]; then
|
||||
sleep 6
|
||||
TEMP=`${PCSENSOR} -cm`
|
||||
TEMP=`${PCSENSOR} -cm | head -n 1`
|
||||
fi
|
||||
fi
|
||||
echo "temp.value $TEMP"
|
||||
|
Loading…
Reference in New Issue
Block a user