ROMFS handle bl_update generically

- include all available legacy bootloaders
This commit is contained in:
Daniel Agar
2021-03-10 09:40:49 -05:00
committed by Lorenz Meier
parent 3ad0da51c4
commit f8eaa6e46b
42 changed files with 84 additions and 213 deletions
@@ -3,25 +3,5 @@
# Holybro Durandal V1 specific board defaults
#------------------------------------------------------------------------------
#
# Bootloader upgrade
#
set BL_FILE /etc/extras/holybro_durandal-v1_bootloader.bin
if [ -f $BL_FILE ]
then
if param compare SYS_BL_UPDATE 1
then
param set SYS_BL_UPDATE 0
param save
echo "BL update..."
bl_update $BL_FILE
echo "BL update done"
reboot
fi
fi
unset BL_FILE
# Enable IMU thermal control
param set-default SENS_EN_THERMAL 1