ui_print("Verifying the updated system image...");
if range_sha1("/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/system", "60,0,32770,32929,32931,33443,65535,65536,65538,66050,88726,98304,98306,98465,98467,98979,131071,131072,131074,163840,163842,164001,164003,164515,196607,196608,196610,229376,229378,229537,229539,230051,262143,262144,262146,294912,294914,295073,295075,295587,327679,327680,327682,360448,360450,393216,393218,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,622592,622594") == "254caf7285911c89b2ac9d8a9ef20532a7041991" then
if range_sha1("/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/system", "86,32770,32929,32931,33443,65535,65536,65538,66050,88726,89238,97792,98304,98306,98465,98467,98979,131071,131072,131074,131586,163328,163840,163842,164001,164003,164515,196607,196608,196610,197122,228864,229376,229378,229537,229539,230051,262143,262144,262146,262658,294400,294912,294914,295073,295075,295587,327679,327680,327682,328194,359936,360448,360450,360962,392704,393216,393218,393730,425472,425984,425986,426498,458240,458752,458754,459266,491008,491520,491522,492034,523776,524288,524290,524802,556544,557056,557058,557570,589312,589824,589826,590338,622080,622592,622594,623106") == "702e86b8e423a807d99bb6ab8711308491c551ee" then
ui_print("Verified the updated system image.");
else
abort("system partition has unexpected non-zero contents after OTA update");
endif;
else
abort("system partition has unexpected contents after OTA update");
endif;