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

This commit is contained in:
cn committed 2015-01-01 20:15:21 +01:00
1 parent abc7c11732
commit e70d6b59fd
1 file changed
+5 -1
+5 -1
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