From bc99ae19239c9e18e83811b8617e9d4ee3306c45 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Wed, 1 Mar 2017 00:07:04 -0400 Subject: [PATCH] AK2: fix unpackelf fix - underp the fallback logic --- tools/ak2-core.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh index 0318519..926298f 100755 --- a/tools/ak2-core.sh +++ b/tools/ak2-core.sh @@ -32,7 +32,7 @@ dump_boot() { else dd if=$block of=/tmp/anykernel/boot.img; fi; - if [ -f "$bin/unpackelf" -a "$($bin/unpackelf -i /tmp/anykernel/boot.img -h -q; echo $?)" != 0 ]; then + if [ -f "$bin/unpackelf" -a "$($bin/unpackelf -i /tmp/anykernel/boot.img -h -q; echo $?)" == 0 ]; then $bin/unpackelf -i /tmp/anykernel/boot.img -o $split_img; mv -f $split_img/boot.img-ramdisk.cpio.gz $split_img/boot.img-ramdisk.gz; else