diff options
| author | Stefan Berger <s.berger81@gmail.com> | 2018-02-18 21:32:52 +0100 |
|---|---|---|
| committer | Ali Al-Asadi <alasadi56@gmail.com> | 2018-03-08 19:29:18 +0100 |
| commit | 9c4dd70a0d71586aecbd851d94086da9bbfd3a92 (patch) | |
| tree | 6b5a4610c92664dfac7f81863535adc4643f122d | |
| parent | 6b3c1342ecb68ed730e355000ea40d156dcf35a9 (diff) | |
athene: Fix torch LED permissions
Change-Id: I0d52aa687f448e129de6214edda9dd057f87b519
| -rw-r--r-- | rootdir/etc/init.qcom.rc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index ef3c639..75b8701 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -255,6 +255,14 @@ on boot chown system system /sys/class/leds/charging/brightness chmod 0664 /sys/class/leds/charging/brightness + # Change the ownership of the torch LED interface + chown system system /sys/class/leds/led:switch/brightness + chmod 0664 /sys/class/leds/led:switch/brightness + chown system system /sys/class/leds/led:torch_0/brightness + chmod 0664 /sys/class/leds/led:torch_0/brightness + chown system system /sys/class/leds/led:torch_1/brightness + chmod 0664 /sys/class/leds/led:torch_1/brightness + # Change permission for backlight chmod 0664 /sys/class/leds/lcd-backlight/brightness |
