wahoo: support separate charger kernel module config

Bug: 65154564
Change-Id: I9941bbce2eadae6a5a010c352b0f48cdd08130e4
This commit is contained in:
Steve Pfetsch
2017-10-04 10:03:59 -07:00
parent beb0bb8758
commit ff146576e5

View File

@@ -7,7 +7,11 @@
### ... ###
#########################################
cfg_file="/vendor/etc/init.insmod.cfg"
if [[ -e "/vendor/etc/init.insmod_charger.cfg" && "$(getprop ro.boot.mode)" == "charger" ]]; then
cfg_file="/vendor/etc/init.insmod_charger.cfg"
else
cfg_file="/vendor/etc/init.insmod.cfg"
fi
if [ -f $cfg_file ]; then
while IFS=" " read -r action name