Guest User

Untitled

a guest
Apr 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #!/sbin/sh
  2.  
  3. if /tmp/busybox test -e /dev/block/bml7 ; then
  4. /tmp/busybox umount -1 /dev/block/stl11
  5. /tmp/busybox mount -t rfs /dev/block/stl11 /cache
  6.  
  7. if ! /tmp/busybox test -d /cache/recovery ; then
  8. /tmp/busybox mkdir /cache/recovery
  9. else
  10. /tmp/busybox rm -rf /cache/recovery/extendedcommand
  11. fi
  12.  
  13. /tmp/busybox rm -rf /mnt/sdcard/clockworkmod/.settings
  14. touch /mnt/sdcard/cyanogenmod.cfg
  15.  
  16. zip_location=`grep -o 'SDCARD:.*' /tmp/recovery.log | tail -1`
  17. touch /cache/recovery/extendedcommand
  18. echo "install_zip $zip_location" > /cache/recovery/extendedcommand
  19. reboot recovery
  20.  
  21.  
  22. /tmp/busybox sync
  23. /tmp/busybox reboot now
  24. fi
Add Comment
Please, Sign In to add comment