#!/system/bin/sh
if ! applypatch -c MTD:recovery:8292352:2a2442bdc5165b8b587fa733471d34b572e88c9a; then
  log -t recovery "Installing new recovery image"
  applypatch MTD:boot:8292352:2a2442bdc5165b8b587fa733471d34b572e88c9a MTD:recovery 2a2442bdc5165b8b587fa733471d34b572e88c9a 8292352 2a2442bdc5165b8b587fa733471d34b572e88c9a:/system/recovery-from-boot.p
else
  log -t recovery "Recovery image already installed"
fi
