#!/system/bin/sh
if ! applypatch -c EMMC:/dev/block/platform/sdhci-tegra.3/by-name/SOS:6717440:241135e6c1f5d4237162159819445b8376869017; then
  log -t recovery "Installing new recovery image"
  applypatch -b /system/etc/recovery-resource.dat EMMC:/dev/block/platform/sdhci-tegra.3/by-name/LNX:6156288:b4280fe6f7953a271709a51153551c7bce3c77e5 EMMC:/dev/block/platform/sdhci-tegra.3/by-name/SOS 241135e6c1f5d4237162159819445b8376869017 6717440 b4280fe6f7953a271709a51153551c7bce3c77e5:/system/recovery-from-boot.p
else
  log -t recovery "Recovery image already installed"
fi
