Advertisement
t0mm13b

sample cwm scripts

May 23rd, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. ui_print("Welcome to t0mm13b's ztebladefmd, built against RC4 config");
  2. ui_print("Warning: This is EXPERIMENTAL and not official!... RDS + USB Host");
  3. ui_print("Extracting ztebladefmd binary to /system/share/ztebladefm/");
  4. mount("yaffs2", "MTD", "system", "/system");
  5. package_extract_dir("system", "/system");
  6. set_perm(0, 0, 0755, "/system/share/ztebladefm/ztebladefmd");
  7. unmount("/system");
  8. ui_print("Permissions set so anyone can exec it... [no exploiting plzkthxbai :P] lulz");
  9. ui_print("Notify t0mm13b via forums or #zteblade for any feedback. Please reboot!");
  10.  
  11. // another
  12.  
  13. ui_print("Warning: This is EXPERIMENTAL and not official!... ");
  14. mount("yaffs2", "MTD", "system", "/system");
  15. delete_recursive("/system/lib/modules");
  16. ui_print("cleaned /system/lib/modules");
  17. package_extract_dir("system", "/system");
  18. ui_print("Installing boot.img...");
  19. assert(package_extract_file("boot.img", "/tmp/boot.img"),
  20. write_raw_image("/tmp/boot.img", "boot"),
  21. delete("/tmp/boot.img"));
  22. ui_print("written boot.img");
  23. unmount("/system");
  24. ui_print("Notify t0mm13b via forums or #zteblade for any feedback. Please reboot!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement