OSDN Git Service

Revert "init: Fix sensors never detected when not available at first boot"
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 29 Jul 2016 03:46:46 +0000 (11:46 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 29 Jul 2016 03:46:46 +0000 (11:46 +0800)
It should be fixed in sensors.hsb directly.

This reverts commit cc1a67274cc608e1f7f5cbaa08f7bec90fafdeb3.

init.sh

diff --git a/init.sh b/init.sh
index 3bf7051..caec377 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -236,7 +236,7 @@ function init_hal_sensors()
        elif lsmod | grep -q lis3lv02d_i2c; then
                hal_sensors=hdaps
        fi
        elif lsmod | grep -q lis3lv02d_i2c; then
                hal_sensors=hdaps
        fi
-       set_property persist.sys.sensors.iio.present 1
+
        set_property ro.hardware.sensors $hal_sensors
 }
 
        set_property ro.hardware.sensors $hal_sensors
 }