#!/bin/sh
OUTFILE="/media/dropbox/recovery.img";

PWD="`pwd`";
KRN_CMDLINE="`cat $PWD/boot.img-cmdline`";
KRN_BASE="`cat $PWD/boot.img-base`";

/home/zefie/optimusdev/android/mkbootimg --kernel "$PWD/zImage" --ramdisk "$PWD/recovery.img-ramdisk.lzma" --cmdline "$KRN_CMDLINE" --base "$KRN_BASE" --output "/tmp/recovery.img";

md5sum /tmp/recovery.img
mv /tmp/recovery.img "$OUTFILE"
md5sum "$OUTFILE"
