Move param reset to right autoconfig check

This commit is contained in:
Lorenz Meier
2014-07-01 12:05:10 +02:00
parent 2b82f22a03
commit 29cd95ebad

View File

@@ -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
#
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