Files
device_google_wahoo/init.insmod.sh
Wei Wang e0fc600245 wahoo: improve boot time and pull in bootanim display time
1) separate fstab mount
2) launch bootanim early
3) boottime cpuset/io tune
4) parallel slow init operations: write sysfs and insmod

After CL:
Boot time saved 330ms, bootanim triggered early before data/ mounted

Bug: 36780513
Test: walleye boots
Change-Id: I02803179746710413f4b1e2372f3550cd95d1581
2017-04-04 19:11:21 -07:00

25 lines
637 B
Bash
Executable File

#!/system/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