1#!/bin/bash 2pause() 3{ 4echo "Press any key to quit:" 5read -n1 -s key 6exit 1 7} 8echo "start to make update.img..." 9if [ ! -f "Image/parameter" -a ! -f "Image/parameter.txt" ]; then 10 echo "Error:No found parameter!" 11 exit 1 12fi 13if [ ! -f "package-file" ]; then 14 echo "Error:No found package-file!" 15 exit 1 16fi 17./afptool -pack ./ Image/update.img || pause 18./rkImageMaker -RK312X Image/MiniLoaderAll.bin Image/update.img update.img -os_type:androidos || pause 19echo "Making update.img OK." 20#echo "Press any key to quit:" 21#read -n1 -s key 22exit $? 23