From 373d4cc3605196c93cee18cfcfbd70f80c87cf8c Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Thu, 20 Aug 2020 22:18:41 +0200 Subject: pistachio: use generic diag.sh Remove local diag.sh in favor of generic one and add the required led-* aliases to DTS. Signed-off-by: Adrian Schmutzler --- target/linux/pistachio/base-files/etc/diag.sh | 30 --------------------------- 1 file changed, 30 deletions(-) delete mode 100755 target/linux/pistachio/base-files/etc/diag.sh (limited to 'target/linux/pistachio/base-files/etc') diff --git a/target/linux/pistachio/base-files/etc/diag.sh b/target/linux/pistachio/base-files/etc/diag.sh deleted file mode 100755 index ed69d43385..0000000000 --- a/target/linux/pistachio/base-files/etc/diag.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2017 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -. /lib/functions/leds.sh - -status_led="marduk:red:heartbeat" - -set_state() { - - case "$1" in - preinit) - status_led_blink_preinit - ;; - failsafe) - status_led_blink_failsafe - ;; - upgrade | \ - preinit_regular) - status_led_blink_preinit_regular - ;; - done) - status_led_on - ;; - esac -} -- cgit v1.2.3