device_xiaomi_miatoll/rootdir/bin/init.sensors_fixup.sh
Giovanni Ricca 1d56ce6642
miatoll: Fixup sensors list
* With MIUI 13, Xiaomi deleted sensor_temperature from its sensor list
* Let's use a simple script that clears out the long gone sensor entry from the list

Change-Id: I7d1ba1aeb40627f5732422a4135cc5394be83703
2023-09-28 09:40:55 +00:00

9 lines
181 B
Bash

#!/vendor/bin/sh
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
sed -i '/sensor_temperature/d' /mnt/vendor/persist/sensors/sensors_list.txt