blob: 305a345e4f678ba366f0f9c851caedf31d528203 [file] [log] [blame]
Amit Pundirc0ad8942021-12-14 19:45:56 +05301#! /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
Amit Pundirbd765d62024-03-08 22:31:43 +05306HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep db845c`
7if [ -n "${HW}" ]; then
Amit Pundirc0ad8942021-12-14 19:45:56 +05308 setprop vendor.hw db845c
Amit Pundirbd765d62024-03-08 22:31:43 +05309 exit 0
10fi
11
12HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep rb5`
13if [ -n "${HW}" ]; then
Amit Pundirc0ad8942021-12-14 19:45:56 +053014 setprop vendor.hw rb5
Amit Pundirbd765d62024-03-08 22:31:43 +053015 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
Amit Pundirc0ad8942021-12-14 19:45:56 +053034fi