cm: Add support for /data/local/userinit.sh
diff --git a/prebuilt/common/etc/init.d/20userinit b/prebuilt/common/etc/init.d/20userinit
index ca88f83..cc46480 100755
--- a/prebuilt/common/etc/init.d/20userinit
+++ b/prebuilt/common/etc/init.d/20userinit
@@ -19,3 +19,12 @@
    logwrapper busybox run-parts $SD_EXT_DIRECTORY/userinit.d;
    setprop cm.userinit.active 1;
 fi;
+
+if [ -e /data/local/userinit.sh ];
+then
+   log -p i -t userinit "Executing /data/local/userinit.sh";
+   busybox chmod +x /data/local/userinit.sh;
+   logwrapper /system/bin/sh /data/local/userinit.sh;
+   setprop cm.userinit.active 1;
+fi;
+