blob: e2b164350b1c7788bea42db4c4726e7849d5143f [file] [log] [blame]
Andrew Dodd3fa72fb2013-09-28 12:19:27 -04001#!/system/bin/sh
2# call userinit.sh and/or userinit.d/* scripts if present in /data/local
3
4if [ -e /data/local/userinit.sh ];
5then
6 log -p i -t userinit "Executing /data/local/userinit.sh";
7 logwrapper /system/bin/sh /data/local/userinit.sh;
8 setprop omni.userinit.active 1;
9fi;
10
11if [ -d /data/local/userinit.d ];
12then
13 logwrapper busybox run-parts /data/local/userinit.d;
14 setprop omni.userinit.active 1;
15fi;