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 exit 0 10fi 11 12HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep rb5` 13if [ -n "${HW}" ]; then 14 setprop vendor.hw rb5 15 exit 0 16fi 17 18HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8550-hdk` 19if [ -n "${HW}" ]; then 20 setprop vendor.hw sm8550hdk 21 exit 0 22fi 23 24HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8550-qrd` 25if [ -n "${HW}" ]; then 26 setprop vendor.hw sm8550qrd 27 exit 0 28fi 29 30HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8650-qrd` 31if [ -n "${HW}" ]; then 32 setprop vendor.hw sm8650qrd 33 exit 0 34fi 35