Replace sysdev path
sysdev gets deprecated in 3.10 Kernel. Hence, replacing
sysdev path with relevant path/s.
Change-Id: I3fa9c59bdbdac6b12b2d626cca4f386f625831ff
diff --git a/init.qcom.thermal_conf.sh b/init.qcom.thermal_conf.sh
index 5300b34..784ebe5 100755
--- a/init.qcom.thermal_conf.sh
+++ b/init.qcom.thermal_conf.sh
@@ -32,7 +32,11 @@
PATH=/sbin:/system/sbin:/system/bin:/system/xbin
export PATH
-platformid=`cat /sys/devices/system/soc/soc0/id`
+if [ -f /sys/devices/soc0/soc_id ]; then
+ platformid=`cat /sys/devices/soc0/soc_id`
+else
+ platformid=`cat /sys/devices/system/soc/soc0/id`
+fi
THERMAL_ENGINE_CONF_SYMLINK=/etc/thermal-engine.conf
# symlink already exists, exit