Skip to content

Commit

Permalink
wahoo: support separate charger kernel module config
Browse files Browse the repository at this point in the history
Bug: 65154564
Change-Id: I9941bbce2eadae6a5a010c352b0f48cdd08130e4
  • Loading branch information
spfetsch committed Oct 4, 2017
1 parent beb0bb8 commit ff14657
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion init.insmod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff14657

Please sign in to comment.