diff options
| author | Chris Fries <cfries@google.com> | 2017-06-27 12:02:00 -0500 |
|---|---|---|
| committer | Chris Fries <cfries@google.com> | 2017-06-27 12:02:00 -0500 |
| commit | dc2b50dfc6ee630b9021b5a576c7fa90c5316928 (patch) | |
| tree | 032ff63fb2c1c7a31b06033d701a49bfcf98c5fb /init.insmod.sh | |
| parent | 3578d54ef27d3fc05ffa827ae6318f4d50484224 (diff) | |
crosshatch: Reset to wahoo on master.
commit dc78ac4aaa64e427c0f5c0672dc22939a9a7b85f
Merge: 820b880 163a21c
Author: Glenn Kasten <gkasten@google.com>
Date: Tue Jun 27 15:12:54 2017 +0000
Merge "Report feature android.software.midi to enable testing" into oc-dr1-dev am: 614e203677
am: 163a21c15f
Change-Id: I18876c0ce8e0435fdcb947d475c66fe7fae57da1
Change-Id: Id08e99f0603407199020818485eb29d92d421c43
Diffstat (limited to 'init.insmod.sh')
| -rwxr-xr-x | init.insmod.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/init.insmod.sh b/init.insmod.sh new file mode 100755 index 0000000..d98037c --- /dev/null +++ b/init.insmod.sh @@ -0,0 +1,24 @@ +#! /vendor/bin/sh + +######################################### +### init.insmod.cfg format: ### +### --------------------------------- ### +### [insmod|setprop] [path|prop name] ### +### ... ### +######################################### + +cfg_file="/vendor/etc/init.insmod.cfg" + +if [ -f $cfg_file ]; then + while IFS=" " read -r action name + do + case $action in + "insmod") insmod $name ;; + "setprop") setprop $name 1 ;; + esac + done < $cfg_file +fi + +# set property even if there is no insmod config +# as property value "1" is expected in early-boot trigger +setprop sys.all.modules.ready 1 |
