From 6685386e8ae42c053fe376644c114f1635c4276f Mon Sep 17 00:00:00 2001 From: Quarx2k Date: Mon, 10 Aug 2015 16:22:52 +0600 Subject: [PATCH] Fix sensors --- rootdir/init.w7.rc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rootdir/init.w7.rc b/rootdir/init.w7.rc index 5c4d71a..4a8d248 100755 --- a/rootdir/init.w7.rc +++ b/rootdir/init.w7.rc @@ -207,6 +207,7 @@ on charger class_start charger on post-fs-data + # we will remap this as /mnt/sdcard with the sdcard fuse tool mkdir /data/media 0770 media_rw media_rw chown media_rw media_rw /data/media @@ -245,6 +246,12 @@ on post-fs-data # We chown/chmod /persist again so because mount is run as root + defaults chown system system /persist chmod 0771 /persist + # fix sensor daenon + mkdir /persist/sensors 0775 system root + write /persist/sensors/sensors_settings 1 + chmod 0644 /persist/sensors/sensors_settings + chown system root /persist/sensors/sensors_settings + chmod 0664 /sys/devices/platform/msm_sdcc.1/polling chmod 0664 /sys/devices/platform/msm_sdcc.2/polling chmod 0664 /sys/devices/platform/msm_sdcc.3/polling