mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-04-29 02:27:21 +09:00
* From hardware/google/pixel at d774cbb949e98627e4172bf8fc11e8d954599aa7. Change-Id: I3a3a0c29575d0595e71a30f1e64e33ca34d2eb27
14 lines
298 B
Bash
Executable File
14 lines
298 B
Bash
Executable File
#!/vendor/bin/sh
|
|
|
|
for f in /sys/class/thermal/thermal_zone*
|
|
do
|
|
tz_name=`cat $f/type`
|
|
ln -s $f /dev/thermal/tz-by-name/$tz_name
|
|
done
|
|
for f in /sys/class/thermal/cooling_device*
|
|
do
|
|
cdev_name=`cat $f/type`
|
|
ln -s $f /dev/thermal/cdev-by-name/$cdev_name
|
|
done
|
|
setprop vendor.thermal.link_ready 1
|