From 61eb8ec290ad39b82e894767f83da7556c2c60f5 Mon Sep 17 00:00:00 2001 From: xkeita Date: Sun, 25 Jun 2017 00:43:03 +0000 Subject: shinano: init: Commonize init.device.rc - Add common init.device.rc for shinano devices. Change-Id: I9793279a529551106cf31dc1c39844fa9274bb5b --- rootdir/init.device-common.rc | 22 ++++++++++++++++++++++ rootdir/init.qcom.rc | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 rootdir/init.device-common.rc (limited to 'rootdir') diff --git a/rootdir/init.device-common.rc b/rootdir/init.device-common.rc new file mode 100644 index 0000000..775f981 --- /dev/null +++ b/rootdir/init.device-common.rc @@ -0,0 +1,22 @@ +on boot + # PM8941 flash + chown media system /sys/class/misc/pm8941-flash/device/current1 + chown media system /sys/class/misc/pm8941-flash/device/current2 + chown media system /sys/class/misc/pm8941-flash/device/fault_status + chown media system /sys/class/misc/pm8941-flash/device/fine_current1 + chown media system /sys/class/misc/pm8941-flash/device/fine_current2 + chown media system /sys/class/misc/pm8941-flash/device/flash_timer + chown media system /sys/class/misc/pm8941-flash/device/mask_clamp_current + chown media system /sys/class/misc/pm8941-flash/device/mask_enable + chown media system /sys/class/misc/pm8941-flash/device/max_current + chown media system /sys/class/misc/pm8941-flash/device/mode + chown media system /sys/class/misc/pm8941-flash/device/startup_delay + chown media system /sys/class/misc/pm8941-flash/device/strobe + chown media system /sys/class/misc/pm8941-flash/device/vph_pwr_droop + + # Touch + chown system system /sys/devices/virtual/input/clearpad/wakeup_gesture + + # Glove input + chown system system /sys/devices/virtual/input/clearpad/glove + chmod 0660 /sys/devices/virtual/input/clearpad/glove diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index d3bb53a..fb4bd2f 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -15,7 +15,7 @@ # limitations under the License. # -import /init.device.rc +import /init.device-common.rc import /init.sony.usb.rc import /init.qcom.power.rc import /init.camera.rc -- cgit v1.2.3