hc
2024-08-16 a24a44ff9ca902811b99aa9663d697cf452e08ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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