VRBRAIN: added automatic update of bootloader from SD at startup
This commit is contained in:
parent
efd407b56e
commit
3adb04dd71
@ -68,6 +68,13 @@ fi
|
|||||||
|
|
||||||
if [ $HAVE_MICROSD == 1 ]
|
if [ $HAVE_MICROSD == 1 ]
|
||||||
then
|
then
|
||||||
|
if [ -f /fs/microsd/bootloader.bin ]
|
||||||
|
then
|
||||||
|
bl_update /fs/microsd/bootloader.bin
|
||||||
|
rm /fs/microsd/bootloader.bin
|
||||||
|
else
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -f /fs/microsd/APM/nostart ]
|
if [ ! -f /fs/microsd/APM/nostart ]
|
||||||
then
|
then
|
||||||
if [ -f /etc/init.d/rc.APM ]
|
if [ -f /etc/init.d/rc.APM ]
|
||||||
|
@ -68,6 +68,13 @@ fi
|
|||||||
|
|
||||||
if [ $HAVE_MICROSD == 1 ]
|
if [ $HAVE_MICROSD == 1 ]
|
||||||
then
|
then
|
||||||
|
if [ -f /fs/microsd/bootloader.bin ]
|
||||||
|
then
|
||||||
|
bl_update /fs/microsd/bootloader.bin
|
||||||
|
rm /fs/microsd/bootloader.bin
|
||||||
|
else
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -f /fs/microsd/APM/nostart ]
|
if [ ! -f /fs/microsd/APM/nostart ]
|
||||||
then
|
then
|
||||||
if [ -f /etc/init.d/rc.APM ]
|
if [ -f /etc/init.d/rc.APM ]
|
||||||
|
@ -68,6 +68,13 @@ fi
|
|||||||
|
|
||||||
if [ $HAVE_MICROSD == 1 ]
|
if [ $HAVE_MICROSD == 1 ]
|
||||||
then
|
then
|
||||||
|
if [ -f /fs/microsd/bootloader.bin ]
|
||||||
|
then
|
||||||
|
bl_update /fs/microsd/bootloader.bin
|
||||||
|
rm /fs/microsd/bootloader.bin
|
||||||
|
else
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -f /fs/microsd/APM/nostart ]
|
if [ ! -f /fs/microsd/APM/nostart ]
|
||||||
then
|
then
|
||||||
if [ -f /etc/init.d/rc.APM ]
|
if [ -f /etc/init.d/rc.APM ]
|
||||||
|
Loading…
Reference in New Issue
Block a user