TT#37257 Combine the detection of "edition" in a single logic block

Change-Id: Ib12a8fca74ee5368ed456561ba59a9230bf5619d
changes/57/22457/2
Manuel Montecelo 8 years ago
parent 8e03fe8079
commit d2afaf90d7

@ -372,18 +372,22 @@ fi
if checkBootParam ngcpce ; then
CE_EDITION=true
fi
if checkBootParam ngcppro || checkBootParam ngcpsp1 || checkBootParam ngcpsp2 ; then
elif checkBootParam ngcppro || checkBootParam ngcpsp1 || checkBootParam ngcpsp2 ; then
PRO_EDITION=true
fi
if "$PRO_EDITION" ; then
ROLE=sp1
if checkBootParam ngcpsp2 ; then
ROLE=sp2
else
ROLE=sp1
fi
elif checkBootParam 'ngcpcrole=' ; then
CROLE=$(getBootParam ngcpcrole)
CARRIER_EDITION=true
elif checkBootParam "puppetenv=" ; then
# will be determined later
:
else
echo "Error: Could not determine 'edition' (spce, sppro, carrier)."
exit 1
fi
if checkBootParam "puppetenv=" ; then
@ -466,11 +470,6 @@ if checkBootParam 'ngcpmcast=' ; then
MCASTADDR=$(getBootParam ngcpmcast)
fi
if checkBootParam 'ngcpcrole=' ; then
CROLE=$(getBootParam ngcpcrole)
CARRIER_EDITION=true
fi
if checkBootParam ngcphalt ; then
HALT=true
fi

Loading…
Cancel
Save