Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- @echo off
- devpath="/plugins/$3"
- if [ $1 == "terminal" ] ; then
- /files/adb "wait-for-device"
- /files/adb push "$devpath/$2" "/data/local/tmp/cwm.img"
- /files/adb shell "su -c 'dd if=/data/local/tmp/cwm.img of=/dev/block/mmcblk0p13; rm /data/local/tmp/cwm.img'"
- /files/adb reboot recovery
- exit
- elif [ $1 == "fastb" ] ; then
- /files/adb "wait-for-device"
- /files/adb reboot bootloader
- /files/fastboot flash recovery "$devpath/$2"
- /files/fastboot boot "$devpath/$2"
- exit
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement