mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-27 17:09:46 +00:00
wahoo: support separate charger kernel module config
Bug: 65154564 Change-Id: I9941bbce2eadae6a5a010c352b0f48cdd08130e4
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user