Skip to content

Commit

Permalink
Fix sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarx2k committed Aug 10, 2015
1 parent a95d03d commit 6685386
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rootdir/init.w7.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6685386

Please sign in to comment.