diff --git a/rootdir/etc/init.qcom.sh b/rootdir/etc/init.qcom.sh index e4a13a3a..9b585fb4 100755 --- a/rootdir/etc/init.qcom.sh +++ b/rootdir/etc/init.qcom.sh @@ -33,22 +33,20 @@ target=`getprop ro.board.platform` # start_sensors() { - if [ -c /dev/msm_dsps ]; then - mkdir -p /data/system/sensors - touch /data/system/sensors/settings - chmod 775 /data/system/sensors - chmod 664 /data/system/sensors/settings + mkdir -p /data/system/sensors + touch /data/system/sensors/settings + chmod 775 /data/system/sensors + chmod 664 /data/system/sensors/settings - mkdir -p /data/misc/sensors - chmod 775 /data/misc/sensors + mkdir -p /data/misc/sensors + chmod 775 /data/misc/sensors - if [ ! -s /data/system/sensors/settings ]; then - # If the settings file is empty, enable sensors HAL - # Otherwise leave the file with it's current contents - echo 1 > /data/system/sensors/settings - fi - start sensors + if [ ! -s /data/system/sensors/settings ]; then + # If the settings file is empty, enable sensors HAL + # Otherwise leave the file with it's current contents + echo 1 > /data/system/sensors/settings fi + start sensors } start_battery_monitor()