1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/packages/sysutils/busybox/scripts/ledfix
2021-01-13 11:29:08 +00:00

17 lines
435 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