cm: Add support for /data/local/userinit.sh

This commit is contained in:
Steve Kondik 2010-08-17 12:11:48 -04:00
parent ab2d3b308d
commit fcab753014

View File

@ -19,3 +19,12 @@ then
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;