omnibus rc.board: add transition support to load params from file to FLASH

This commit is contained in:
Beat Küng
2018-12-23 15:49:37 -05:00
committed by Daniel Agar
parent 5b4a77a67b
commit 169722c46f
+10
View File
@@ -14,6 +14,16 @@
#------------------------------------------------------------------------------
#
# transision from params file to flash-based params (2018-12-20)
if [ -f $PARAM_FILE ]
then
param load $PARAM_FILE
param save
# create a backup
mv $PARAM_FILE ${PARAM_FILE}.bak
reboot
fi
if [ $AUTOCNF = yes ]
then
# Disable safety switch by default