2010-07-06 03:09:35 +00:00
|
|
|
#!/system/bin/sh
|
|
|
|
# call a userinit.sh script if it's present on the sdcard
|
|
|
|
|
|
|
|
if [ "$SD_EXT_DIRECTORY" = "" ];
|
|
|
|
then
|
|
|
|
SD_EXT_DIRECTORY=/sd-ext;
|
|
|
|
fi;
|
|
|
|
|
|
|
|
if [ -e $SD_EXT_DIRECTORY/userinit.sh ];
|
|
|
|
then
|
|
|
|
log -p i -t userinit "Executing $SD_EXT_DIRECTORY/userinit.sh";
|
|
|
|
busybox chmod +x $SD_EXT_DIRECTORY/userinit.sh;
|
|
|
|
logwrapper /system/bin/sh $SD_EXT_DIRECTORY/userinit.sh;
|
|
|
|
setprop cm.userinit.active 1;
|
|
|
|
fi;
|
|
|
|
|
|
|
|
if [ -d $SD_EXT_DIRECTORY/userinit.d ];
|
|
|
|
then
|
|
|
|
logwrapper busybox run-parts $SD_EXT_DIRECTORY/userinit.d;
|
|
|
|
setprop cm.userinit.active 1;
|
|
|
|
fi;
|
2010-08-17 16:11:48 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2011-01-22 13:36:34 +00:00
|
|
|
if [ -d /data/local/userinit.d ];
|
|
|
|
then
|
|
|
|
logwrapper busybox run-parts /data/local/userinit.d;
|
|
|
|
setprop cm.userinit.active 1;
|
|
|
|
fi;
|