diff options
Diffstat (limited to 'shared/utils/set_hw.sh')
-rw-r--r-- | shared/utils/set_hw.sh | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/shared/utils/set_hw.sh b/shared/utils/set_hw.sh index 98f76c3..305a345 100644 --- a/shared/utils/set_hw.sh +++ b/shared/utils/set_hw.sh @@ -3,10 +3,32 @@ # # grep the device name from /proc/device-tree/compatible -HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep rb5` - -if [ -z "${HW}" ]; then +HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep db845c` +if [ -n "${HW}" ]; then setprop vendor.hw db845c -else + exit 0 +fi + +HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep rb5` +if [ -n "${HW}" ]; then setprop vendor.hw rb5 + exit 0 +fi + +HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8550-hdk` +if [ -n "${HW}" ]; then + setprop vendor.hw sm8550hdk + exit 0 +fi + +HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8550-qrd` +if [ -n "${HW}" ]; then + setprop vendor.hw sm8550qrd + exit 0 +fi + +HW=`/vendor/bin/cat /proc/device-tree/compatible | /vendor/bin/grep sm8650-qrd` +if [ -n "${HW}" ]; then + setprop vendor.hw sm8650qrd + exit 0 fi |