From c5217ce25f09e0fd8c045a862c4e9b84573db5f9 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Wed, 28 Sep 2011 01:05:04 +0100 Subject: [PATCH] leo: update leoupdate Change the script to include the main ramdisk that is created by the compilation, unless if someone has their own initrd.gz in the repo, it will ignore it Change-Id: I8847c0890124d64e1de98f02f39f38f3a3062c43 --- tools/leoupdate | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/leoupdate b/tools/leoupdate index 8f43b8df..5e2ae104 100755 --- a/tools/leoupdate +++ b/tools/leoupdate @@ -22,6 +22,9 @@ cd "$LOC"/temp rm -rf "$LOC"/temp/boot.img rm -rf "$LOC"/temp/boot cp -a "$LOC"/boot "$LOC"/temp/boot +if [[ ! -e "$LOC"/temp/boot/initrd.gz ]] ; then + cp -a "$LOC"/ramdisk.img "$LOC"/temp/boot/initrd.gz +fi rm -rf "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip zip -9yr "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$USER.zip * > /dev/null cd "$LOC"