#!/system/bin/sh
if ! applypatch -c EMMC:/dev/block/mmcblk0p10:5183488:89c9f89663be2ced1eb049103100eba5bea37f94; then
  log -t recovery "Installing new recovery image"
  applypatch -b /system/etc/recovery-resource.dat EMMC:/dev/block/mmcblk0p9:4450304:fe0b36cb6f75d3de22f69560a647ca2278f4764f EMMC:/dev/block/mmcblk0p10 89c9f89663be2ced1eb049103100eba5bea37f94 5183488 fe0b36cb6f75d3de22f69560a647ca2278f4764f:/system/recovery-from-boot.p
else
  log -t recovery "Recovery image already installed"
fi
