Browse Source

Move param reset to right autoconfig check

sbg
Lorenz Meier 11 years ago
parent
commit
29cd95ebad
  1. 8
      ROMFS/px4fmu_common/init.d/rcS

8
ROMFS/px4fmu_common/init.d/rcS

@ -132,6 +132,10 @@ then @@ -132,6 +132,10 @@ then
#
if param compare SYS_AUTOCONFIG 1
then
# We can't be sure the defaults haven't changed, so
# if someone requests a re-configuration, we do it
# cleanly from scratch
param reset
set DO_AUTOCONFIG yes
else
set DO_AUTOCONFIG no
@ -173,10 +177,6 @@ then @@ -173,10 +177,6 @@ then
#
if [ $DO_AUTOCONFIG == yes ]
then
# We can't be sure the defaults haven't changed, so
# if someone requests a re-configuration, we do it
# cleanly from scratch
param reset
param set SYS_AUTOCONFIG 0
param save
fi

Loading…
Cancel
Save