Ensure no SD alarm always plays. Fixes #1500

This commit is contained in:
Lorenz Meier
2014-12-15 15:34:19 +01:00
parent dfc368ad46
commit aa40c69853

View File

@@ -28,9 +28,6 @@ then
tone_alarm start
else
set LOG_FILE /dev/null
echo "[i] No microSD card found"
# Play SOS
tone_alarm error
fi
#
@@ -585,6 +582,14 @@ then
fi
unset EXIT_ON_END
# Run no SD alarm last
if [ $LOG_FILE == /dev/null ]
then
echo "[i] No microSD card found"
# Play SOS
tone_alarm error
fi
# End of autostart
fi