From fcab753014a1a0da25442c860e11d6d07d32ebf6 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Tue, 17 Aug 2010 12:11:48 -0400 Subject: [PATCH] cm: Add support for /data/local/userinit.sh --- prebuilt/common/etc/init.d/20userinit | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/prebuilt/common/etc/init.d/20userinit b/prebuilt/common/etc/init.d/20userinit index ca88f839..cc464809 100755 --- a/prebuilt/common/etc/init.d/20userinit +++ b/prebuilt/common/etc/init.d/20userinit @@ -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; +