Amit Pundir | c0ad894 | 2021-12-14 19:45:56 +0530 | [diff] [blame] | 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 | |
Amit Pundir | bd765d6 | 2024-03-08 22:31:43 +0530 | [diff] [blame^] | 6 | HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep db845c` |
| 7 | if [ -n "${HW}" ]; then |
Amit Pundir | c0ad894 | 2021-12-14 19:45:56 +0530 | [diff] [blame] | 8 | setprop vendor.hw db845c |
Amit Pundir | bd765d6 | 2024-03-08 22:31:43 +0530 | [diff] [blame^] | 9 | exit 0 |
| 10 | fi |
| 11 | |
| 12 | HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep rb5` |
| 13 | if [ -n "${HW}" ]; then |
Amit Pundir | c0ad894 | 2021-12-14 19:45:56 +0530 | [diff] [blame] | 14 | setprop vendor.hw rb5 |
Amit Pundir | bd765d6 | 2024-03-08 22:31:43 +0530 | [diff] [blame^] | 15 | exit 0 |
| 16 | fi |
| 17 | |
| 18 | HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8550-hdk` |
| 19 | if [ -n "${HW}" ]; then |
| 20 | setprop vendor.hw sm8550hdk |
| 21 | exit 0 |
| 22 | fi |
| 23 | |
| 24 | HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8550-qrd` |
| 25 | if [ -n "${HW}" ]; then |
| 26 | setprop vendor.hw sm8550qrd |
| 27 | exit 0 |
| 28 | fi |
| 29 | |
| 30 | HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8650-qrd` |
| 31 | if [ -n "${HW}" ]; then |
| 32 | setprop vendor.hw sm8650qrd |
| 33 | exit 0 |
Amit Pundir | c0ad894 | 2021-12-14 19:45:56 +0530 | [diff] [blame] | 34 | fi |