summaryrefslogtreecommitdiff
path: root/qcom/set_hw.sh
diff options
context:
space:
mode:
Diffstat (limited to 'qcom/set_hw.sh')
-rw-r--r--qcom/set_hw.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/qcom/set_hw.sh b/qcom/set_hw.sh
new file mode 100644
index 0000000..98f76c3
--- /dev/null
+++ b/qcom/set_hw.sh
@@ -0,0 +1,12 @@
+#! /vendor/bin/sh
+# Set vendor.hw property to run device specific services
+#
+# 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
+ setprop vendor.hw db845c
+else
+ setprop vendor.hw rb5
+fi