Advertisement
dunc001

0userinit_Ray_Lupus

Jan 27th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #!/sbin/sh
  2. # call a userinit.sh script if it's present on the sdcard
  3. echo "executing 00-userinit" >> /data/local/tmp/log_doom-mods.log
  4.  
  5. if [ "$SD_EXT_DIRECTORY" = "" ];
  6. then
  7. SD_EXT_DIRECTORY=/sd-ext;
  8. fi;
  9.  
  10. if [ -e $SD_EXT_DIRECTORY/userinit.sh ];
  11. then
  12. log -p i -t userinit "Executing $SD_EXT_DIRECTORY/userinit.sh";
  13. busybox chmod +x $SD_EXT_DIRECTORY/userinit.sh;
  14. logwrapper /system/bin/sh $SD_EXT_DIRECTORY/userinit.sh;
  15. setprop cm.userinit.active 1;
  16. fi;
  17.  
  18. if [ -d $SD_EXT_DIRECTORY/userinit.d ];
  19. then
  20. logwrapper busybox run-parts $SD_EXT_DIRECTORY/userinit.d;
  21. setprop cm.userinit.active 1;
  22. fi;
  23.  
  24. if [ -e /data/local/userinit.sh ];
  25. then
  26. log -p i -t userinit "Executing /data/local/userinit.sh";
  27. busybox chmod +x /data/local/userinit.sh;
  28. logwrapper /system/bin/sh /data/local/userinit.sh;
  29. setprop cm.userinit.active 1;
  30. fi;
  31.  
  32. if [ -d /data/local/userinit.d ];
  33. then
  34. logwrapper busybox run-parts /data/local/userinit.d;
  35. setprop cm.userinit.active 1;
  36. fi;
  37.  
  38. echo "exiting 00-userinit" >> /data/local/tmp/log_doom-mods.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement