Skip to content

Commit a5520e4

Browse files
committed
hw-mgmt: script: Fix ThermalControl service disable logic
On systems that do not support thermal control, the thermal service should be disabled. By mistake, we had the logic for thermal control support detection inverted. This commit fixes the TC support check logic: Return 1 if TC is supported Return 0 otherwise Bug: 4567911 Signed-off-by: Oleksandr Shamray <[email protected]>
1 parent 7626a3f commit a5520e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

usr/usr/bin/hw-management-helpers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ check_simx()
336336
check_tc_is_supported()
337337
{
338338
if grep -q '"platform_support" : 0' $config_path/tc_config.json; then
339-
return 1
340-
else
341339
return 0
340+
else
341+
return 1
342342
fi
343343
}
344344

0 commit comments

Comments
 (0)