***** UPGRADE SCRIPTS INFORMATION *****

smartware/scripts/upgrade.sh is the main upgrade script which is called by system settings device handler every time when the dcp is upgraded.

DCP running revision
The current running revision number is stored at /etc/image/release.txt.

DCP new release revision
The new release revision number is manually updated at smartware/build/release.txt for each new release.

Upgrade script for new release
- Every new release, it has its own the upgrade.sh script which is stored under smartware/scripts/r<revision> directory.
- This upgrade.sh script is only needed if we want to run a specific script in new release.
- This script will be called from the main upgrade.sh script when doing upgrade the DCP to this release. 
- Inside main upgrade.sh script, it will check current running revision to decide how the upgrade does to new release revision.
- If there is no ugrade.sh for new release, the main upgrade.sh will exit and the software upgrade will continue as normal.


Upgrade log
The upgrade script log related is stored permanent at below files:
- /mnt/mmc/log/upgrade.log
- /mnt/mmc/log/persistent.log


