2012-04-06 01:18:18 +00:00
|
|
|
#!/system/bin/sh
|
|
|
|
# call userinit.sh and/or userinit.d/* scripts if present in /data/local
|
|
|
|
|
|
|
|
if [ -e /data/local/userinit.sh ];
|
|
|
|
then
|
|
|
|
log -p i -t userinit "Executing /data/local/userinit.sh";
|
2015-02-04 16:49:33 +00:00
|
|
|
/system/bin/sh /data/local/userinit.sh;
|
2012-04-06 01:18:18 +00:00
|
|
|
setprop cm.userinit.active 1;
|
|
|
|
fi;
|
|
|
|
|
|
|
|
if [ -d /data/local/userinit.d ];
|
|
|
|
then
|
2015-02-04 16:49:33 +00:00
|
|
|
busybox run-parts /data/local/userinit.d;
|
2012-04-06 01:18:18 +00:00
|
|
|
setprop cm.userinit.active 1;
|
|
|
|
fi;
|