Advertisement
superr

recovery.sh

Jul 12th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #!/bin/bash
  2. @echo off
  3.  
  4. devpath="/plugins/$3"
  5.  
  6. if [ $1 == "terminal" ] ; then
  7. /files/adb "wait-for-device"
  8. /files/adb push "$devpath/$2" "/data/local/tmp/cwm.img"
  9. /files/adb shell "su -c 'dd if=/data/local/tmp/cwm.img of=/dev/block/mmcblk0p13; rm /data/local/tmp/cwm.img'"
  10. /files/adb reboot recovery
  11. exit
  12.  
  13.  
  14. elif [ $1 == "fastb" ] ; then
  15. /files/adb "wait-for-device"
  16. /files/adb reboot bootloader
  17. /files/fastboot flash recovery "$devpath/$2"
  18. /files/fastboot boot "$devpath/$2"
  19. exit
  20.  
  21. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement