Advertisement
percy_g2

bootrec

Feb 13th, 2014
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. #!/sbin/sh
  2.  
  3. cat /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device > /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device
  4. setprop service.adb.root 1
  5. if [ -e /sbin/bootrec-device ]
  6. then
  7. /sbin/bootrec-device
  8. fi
  9.  
  10. if [ -s /dev/keycheck -o -e /cache/recovery/boot ]
  11. then
  12. rm /cache/recovery/boot
  13.  
  14. stop ta_rmt_service
  15. stop rmt_storage
  16. stop tad
  17.  
  18. mount -o remount,rw rootfs /
  19. umount -l /system
  20. umount -l /data
  21. umount -l /cache
  22. umount -l /mnt/sdcard
  23. umount -l /mnt/external_sd
  24. rm -r /sdcard
  25. rm -r /mnt/sdcard
  26. rm -r /external_sd
  27. rm -r /mnt/external_sd
  28. mkdir /sdcard
  29. mkdir /external_sd
  30. mkdir /tmp
  31. rm /etc
  32. mkdir /etc
  33. cp /recovery.fstab /etc/recovery.fstab
  34. /sbin/bootrec-device-fs
  35. /sbin/recovery&
  36. fi
  37.  
  38. #continue booting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement