diff options
author | Arian <arian.kulmer@web.de> | 2019-08-17 18:15:24 +0200 |
---|---|---|
committer | Arian <arian.kulmer@web.de> | 2019-10-25 22:16:13 +0200 |
commit | f830aea419318e71934683a56652b18db782105f (patch) | |
tree | 073827de9637ae83a69e96716db62bf973245ef1 /rootdir/bin/init.qcom-sensor.sh | |
parent | 03e187ba0c3beba4ad529922d9328887d222aa90 (diff) |
shinano-common: Restructure rootdir folder
Diffstat (limited to 'rootdir/bin/init.qcom-sensor.sh')
-rw-r--r-- | rootdir/bin/init.qcom-sensor.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/rootdir/bin/init.qcom-sensor.sh b/rootdir/bin/init.qcom-sensor.sh new file mode 100644 index 0000000..21d24c7 --- /dev/null +++ b/rootdir/bin/init.qcom-sensor.sh @@ -0,0 +1,23 @@ +#!/system/bin/sh +# Copyright (C) 2013 Sony Mobile Communications AB. + +# +# Function to start sensors for DSPS enabled platforms +# +start_sensors() +{ + if [ -c /dev/msm_dsps -o -c /dev/sensors ]; then + chmod -h 775 /persist/sensors + chmod -h 664 /persist/sensors/sensors_settings + chown -h system.root /persist/sensors/sensors_settings + + mkdir -p /data/misc/sensors + chmod -h 775 /data/misc/sensors + + echo 1 > /persist/sensors/settings + start sensors + fi +} + +start_sensors + |