AK2: fix unpackelf fix

- underp the fallback logic
This commit is contained in:
Chris Renshaw authored and GitHub committed 2017-03-01 00:07:04 -04:00
1 parent 7c244c6dea
commit bc99ae1923
1 file changed
+1 -1
+1 -1
View File
@@ -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