diff options
author | Steve Kondik <shade@chemlab.org> | 2010-08-17 12:11:48 -0400 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2010-08-17 12:11:48 -0400 |
commit | fcab753014a1a0da25442c860e11d6d07d32ebf6 (patch) | |
tree | 64cda5c0ddf2dbd3e46c7d11a2660afd559e59c3 /prebuilt/common/etc/init.d/20userinit | |
parent | ab2d3b308df020c986cf8071e6a045e4ad62e126 (diff) | |
download | vendor_replicant-fcab753014a1a0da25442c860e11d6d07d32ebf6.zip vendor_replicant-fcab753014a1a0da25442c860e11d6d07d32ebf6.tar.gz vendor_replicant-fcab753014a1a0da25442c860e11d6d07d32ebf6.tar.bz2 |
cm: Add support for /data/local/userinit.sh
Diffstat (limited to 'prebuilt/common/etc/init.d/20userinit')
-rwxr-xr-x | prebuilt/common/etc/init.d/20userinit | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/prebuilt/common/etc/init.d/20userinit b/prebuilt/common/etc/init.d/20userinit index ca88f83..cc46480 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; + |