Hotfix: Prevent failures in boot handling due to missing microSD card logfile - we are not depending on the microSD any more completely

This commit is contained in:
Lorenz Meier 2014-01-23 08:17:04 +01:00
parent 6c23e2f159
commit ac37172b52
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,6 @@
#
set MODE autostart
set LOG_FILE /fs/microsd/bootlog.txt
set RC_FILE /fs/microsd/etc/rc.txt
set CONFIG_FILE /fs/microsd/etc/config.txt
set EXTRAS_FILE /fs/microsd/etc/extras.txt
@ -21,10 +20,12 @@ set TUNE_OUT_ERROR ML<<CP4CP4CP4CP4CP4
echo "[init] Looking for microSD..."
if mount -t vfat /dev/mmcsd0 /fs/microsd
then
set LOG_FILE /fs/microsd/bootlog.txt
echo "[init] microSD card mounted at /fs/microsd"
# Start playing the startup tune
tone_alarm start
else
set LOG_FILE /dev/null
echo "[init] No microSD card found"
# Play SOS
tone_alarm error