From fff53c28ea9d4934a734f3d7fd20070587ffee31 Mon Sep 17 00:00:00 2001 From: Josef Schlehofer <josef.schlehofer@nic.cz> Date: Sat, 24 Sep 2022 18:29:33 +0200 Subject: [PATCH] patches/openwrt: base-files: add heartbeat led trigger: accepted --- ...Turris-MOX-Support-for-heartbeat-LED.patch | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/patches/openwrt/to-upstream/0049-base-files-Turris-MOX-Support-for-heartbeat-LED.patch b/patches/openwrt/to-upstream/0049-base-files-Turris-MOX-Support-for-heartbeat-LED.patch index e9af51a5b..18bb320b3 100644 --- a/patches/openwrt/to-upstream/0049-base-files-Turris-MOX-Support-for-heartbeat-LED.patch +++ b/patches/openwrt/to-upstream/0049-base-files-Turris-MOX-Support-for-heartbeat-LED.patch @@ -13,33 +13,9 @@ Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com> Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Signed-off-by: Šimon Bořek <simon.borek@nic.cz> --- - .../base-files/files/lib/functions/uci-defaults.sh | 12 ++++++++++++ .../mvebu/cortexa53/base-files/etc/board.d/01_leds | 3 +++ - 2 files changed, 15 insertions(+) + 1 files changed, 3 insertions(+) -diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh -index 02882f43ca..eb9884a14d 100644 ---- a/package/base-files/files/lib/functions/uci-defaults.sh -+++ b/package/base-files/files/lib/functions/uci-defaults.sh -@@ -418,6 +418,18 @@ ucidef_set_led_default() { - json_select .. - } - -+ucidef_set_led_heartbeat() { -+ -+ _ucidef_set_led_common "$1" "$2" "$3" -+ -+ json_add_string trigger "heartbeat" -+ -+ json_select .. -+ -+ json_select .. -+} -+ -+ - ucidef_set_led_gpio() { - local gpio="$4" - local inverted="$5" diff --git a/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds b/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds index 42f4deb88a..85008b1b4e 100755 --- a/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds -- GitLab