You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
470 B
23 lines
470 B
#!/bin/bash
|
|
pause()
|
|
{
|
|
echo "Press any key to quit:"
|
|
read -n1 -s key
|
|
exit 1
|
|
}
|
|
echo "start to unpack update.img..."
|
|
if [ ! -d "output" ]; then
|
|
mkdir output
|
|
fi
|
|
if [ ! -f "update.img" ]; then
|
|
echo "Error:No found update.img!"
|
|
pause
|
|
fi
|
|
./rkImageMaker -unpack update.img output || pause
|
|
./afptool -unpack output/firmware.img output || pause
|
|
rm -f output/firmware.img
|
|
rm -f output/boot.bin
|
|
echo "Unpacking update.img OK."
|
|
echo "Press any key to quit:"
|
|
read -n1 -s key
|
|
exit 0 |