I only changed the code below.
#done
#if [ ${BOARD_MATCH} = false ]; then
# echo "${SCRIPT_NAME}: You are trying to flash images from a board model that does not"
# echo "match the current board you're flashing onto."
# exit 1
#fi
And this is the script I use.
nvrestore_partitions.sh (12.7 KB)