Skip to content

Instantly share code, notes, and snippets.

@Nokius

Nokius/mode Secret

Last active May 28, 2016 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nokius/d262c412e45c8f379086d547a4799190 to your computer and use it in GitHub Desktop.
Save Nokius/d262c412e45c8f379086d547a4799190 to your computer and use it in GitHub Desktop.
[SailfishOS] scorpion sensors init.*
init.qcom.rc: mkdir /persist/sensors 0775 system root
init.qcom.rc: write /persist/sensors/sensors_settings 1
init.qcom.rc: chmod 0644 /persist/sensors/sensors_settings
init.qcom.rc: chown system root /persist/sensors/sensors_settings
init.qcom.rc: mkdir /data/misc/sensors 0775 system system
init.qcom.rc: restorecon_recursive /data/misc/sensors
init.qcom.rc:service sensors /system/bin/sensors.qcom
init.qcom.rc:service sensorservice /system/bin/sensorservice
sh-3.2# grep -r sensor init.*
init.qcom.rc: mkdir /data/system/sensors 0775 system system
init.qcom.rc: mkdir /data/misc/sensors 0775 system system
init.qcom.rc: write /data/system/sensors/settings 1
init.qcom.rc: chmod 664 /data/system/sensors/settings
init.qcom.rc: chown system /data/system/sensors/settings
init.qcom.rc:service sensors /system/bin/sensors.qcom
init.qcom.rc: group sensors radio system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment