AK2: fix unpackelf fix
- underp the fallback logic
This commit is contained in:
1 parent
7c244c6dea
commit
bc99ae1923
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user