1#! /vendor/bin/sh 2# Set vendor.hw property to run device specific services 3# 4# grep the device name from /proc/device-tree/compatible 5 6HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep db845c` 7if [ -n "${HW}" ]; then 8 setprop vendor.hw db845c 9 setprop vendor.thermal.config thermal-db845c.json 10 exit 0 11fi 12 13HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep rb5` 14if [ -n "${HW}" ]; then 15 setprop vendor.hw rb5 16 exit 0 17fi 18 19HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8550-hdk` 20if [ -n "${HW}" ]; then 21 setprop vendor.hw sm8550hdk 22 exit 0 23fi 24 25HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8550-qrd` 26if [ -n "${HW}" ]; then 27 setprop vendor.hw sm8550qrd 28 exit 0 29fi 30 31HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8650-qrd` 32if [ -n "${HW}" ]; then 33 setprop vendor.hw sm8650qrd 34 exit 0 35fi 36