mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
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:
@@ -8,7 +8,6 @@
|
|||||||
#
|
#
|
||||||
set MODE autostart
|
set MODE autostart
|
||||||
|
|
||||||
set LOG_FILE /fs/microsd/bootlog.txt
|
|
||||||
set RC_FILE /fs/microsd/etc/rc.txt
|
set RC_FILE /fs/microsd/etc/rc.txt
|
||||||
set CONFIG_FILE /fs/microsd/etc/config.txt
|
set CONFIG_FILE /fs/microsd/etc/config.txt
|
||||||
set EXTRAS_FILE /fs/microsd/etc/extras.txt
|
set EXTRAS_FILE /fs/microsd/etc/extras.txt
|
||||||
@@ -21,10 +20,12 @@ set TUNE_OUT_ERROR ML<<CP4CP4CP4CP4CP4
|
|||||||
echo "[init] Looking for microSD..."
|
echo "[init] Looking for microSD..."
|
||||||
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
||||||
then
|
then
|
||||||
|
set LOG_FILE /fs/microsd/bootlog.txt
|
||||||
echo "[init] microSD card mounted at /fs/microsd"
|
echo "[init] microSD card mounted at /fs/microsd"
|
||||||
# Start playing the startup tune
|
# Start playing the startup tune
|
||||||
tone_alarm start
|
tone_alarm start
|
||||||
else
|
else
|
||||||
|
set LOG_FILE /dev/null
|
||||||
echo "[init] No microSD card found"
|
echo "[init] No microSD card found"
|
||||||
# Play SOS
|
# Play SOS
|
||||||
tone_alarm error
|
tone_alarm error
|
||||||
|
|||||||
Reference in New Issue
Block a user