init: qcom: Change owner and permissions of input_current_settled property

The input_current_settled property is accessed by the charger_monitor which
is running as a system service. Modify the permissions and owner for it to
be accessible.

Change-Id: I0bc0b6b31d2cda0c1550e38ce838b984f80a959b
This commit is contained in:
Anirudh Ghayal 2013-10-30 10:05:15 +05:30
parent eaf2c7b074
commit d28a2b88d5
1 changed files with 2 additions and 0 deletions

View File

@ -72,9 +72,11 @@ start_charger_monitor()
chown -h root.system /sys/module/qpnp_charger/parameters/*
chown -h root.system /sys/class/power_supply/battery/input_current_max
chown -h root.system /sys/class/power_supply/battery/input_current_trim
chown -h root.system /sys/class/power_supply/battery/input_current_settled
chown -h root.system /sys/class/power_supply/battery/voltage_min
chmod -h 0664 /sys/class/power_supply/battery/input_current_max
chmod -h 0664 /sys/class/power_supply/battery/input_current_trim
chmod -h 0664 /sys/class/power_supply/battery/input_current_settled
chmod -h 0664 /sys/class/power_supply/battery/voltage_min
chmod -h 0664 /sys/module/qpnp_charger/parameters/charger_monitor
start charger_monitor