1 #./installer.sh installer.conf /home/liu/samsung/test2.1r2_ext3/out/target/product/shrek/system.img
2 echo "installer config file:$1"
3 echo "installer image file:$2"
4 echo "start usb installer ?"
6 if [ "$SAYYES" = "y" ] ||
[ "$SAYYES" = "Y" ]; then
9 echo "start usb install..."
14 .
/adb devices
> mydevices.txt
15 cat mydevices.txt |
sed '/^$/d' |
sed -n '2p' > device1.txt
16 device1
=`cat device1.txt`
21 if [ -z "$device1" ] ||
[ "$device1" = "" ] ; then
22 echo "not find devices!"
24 echo "start push file!"
25 .
/adb push
"$1" /sdcard
26 .
/adb push
"$2" /sdcard
30 echo "not find image file!"
33 echo "not find config file!"