Files
device_google_wahoo/init.insmod.sh
Sandeep Patil 4a2b3affda wahoo: Make vendor script use vendor shell and vendor toybox
This also enables us to remove the vendor_executes_system_violator
attribute from all the vendor scripts launched from init.

Bug: 37914554
Test: Build and boot and ensure all services exited with status 0.

Change-Id: If692b17b45f91ff128608c3f6e9524847c1af69f
Signed-off-by: Sandeep Patil <sspatil@google.com>
2017-06-19 11:18:51 -07:00

25 lines
638 B
Bash
Executable File

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