1#! /vendor/bin/sh 2 3######################################### 4### init.insmod.cfg format: ### 5### --------------------------------- ### 6### [insmod|setprop] [path|prop name] ### 7### ... ### 8######################################### 9 10cfg_file="/vendor/etc/init.insmod.cfg" 11 12if [ -f $cfg_file ]; then 13 while IFS=" " read -r action name 14 do 15 case $action in 16 "insmod") insmod $name ;; 17 "setprop") setprop $name 1 ;; 18 esac 19 done < $cfg_file 20fi 21 22# set property even if there is no insmod config 23# as property value "1" is expected in early-boot trigger 24setprop vendor.all.modules.ready 1 25