0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-02-07 18:39:53 +00:00
2024-07-06 13:02:07 +02:00

17 lines
436 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2020-present Team LibreELEC (https://libreelec.tv)
# find heartbeat triggers and set them to none
case $(dtsoc) in
amlogic*)
for triggerfile in $(find /sys/devices/platform/leds -name trigger); do
trigger=$(awk -F'[][]' '{print $2}' "$triggerfile")
if [ "$trigger" = "heartbeat" ]; then
echo "none" >"$triggerfile"
fi
done
;;
esac