More delay before first retry and retry two times since some systems aren't that fast

This commit is contained in:
cn 2015-01-01 20:15:21 +01:00
parent abc7c11732
commit e70d6b59fd
1 changed files with 5 additions and 1 deletions

View File

@ -20,8 +20,12 @@ if [ "${1}" = "config" ]; then
else
TEMP=`${PCSENSOR} -cm`
if [[ $? != 0 ]]; then
sleep 1
sleep 2
TEMP=`${PCSENSOR} -cm`
if [[ $? != 0 ]]; then
sleep 6
TEMP=`${PCSENSOR} -cm`
fi
fi
echo "temp.value $TEMP"
fi