Skip to content

Commit

Permalink
bin/unpack additions
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliminater74 committed Jan 1, 2022
1 parent 0c71430 commit 776e0c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/unpack
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,23 @@ then
echo "Unpacking recovery..."
cp output/image/recovery.PARTITION output/recovery/recovery.img
cd output/recovery
../../bin/abootimg -x recovery.img
../../bin/AIK-Linux/unpackimg.sh --local recovery.img
cd ../..
rm -f output/recovery/recovery.img
fi

if [ -f "output/image/boot.PARTITION" ]; then
echo "Unpacking boot..."
echo "Unpacking boot.img"
cp output/image/boot.PARTITION output/boot/boot.img
cd output/boot
../../bin/abootimg -x boot.img
../../bin/AIK-Linux/unpackimg.sh --local boot.img
cd ../..
rm -f output/boot/boot.img
else
echo "Unpacking boot_a.img"
cp output/image/boot_a.PARTITION output/boot/boot_a.img
cd output/boot
../../bin/abootimg -x boot_a.img
../../bin/AIK-Linux/unpackimg.sh --local boot_a.img
cd ../..
rm -f output/boot/boot_a.img
fi
Expand Down

0 comments on commit 776e0c0

Please sign in to comment.