diff options
author | Daniel Golle <daniel@makrotopia.org> | 2019-03-01 23:51:19 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2019-03-01 23:51:19 +0100 |
commit | 6b2874707a3f2458803582f48a2ef68ac7dd7b42 (patch) | |
tree | 7840290b8a7c5faf3bf6ab914cae0df953e8c862 /target/linux/oxnas/base-files | |
parent | e882d5bf312bbc4cf672c26dda8f73df47f779f7 (diff) | |
download | upstream-6b2874707a3f2458803582f48a2ef68ac7dd7b42.tar.gz upstream-6b2874707a3f2458803582f48a2ef68ac7dd7b42.tar.bz2 upstream-6b2874707a3f2458803582f48a2ef68ac7dd7b42.zip |
oxnas: switch to DTS aliases for LEDs and use generic diag.sh
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/oxnas/base-files')
-rwxr-xr-x | target/linux/oxnas/base-files/etc/board.d/01_leds | 26 | ||||
-rw-r--r-- | target/linux/oxnas/base-files/etc/diag.sh | 41 |
2 files changed, 0 insertions, 67 deletions
diff --git a/target/linux/oxnas/base-files/etc/board.d/01_leds b/target/linux/oxnas/base-files/etc/board.d/01_leds deleted file mode 100755 index 0d92b16d96..0000000000 --- a/target/linux/oxnas/base-files/etc/board.d/01_leds +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -. /lib/functions/uci-defaults.sh - -board=$(board_name) -board_config_update - -case $board in - "akitio,myloud") - ucidef_set_led_default "status" "status" "akitio:red:status" "0" - ;; - "mitrastar,stg-212") - ucidef_set_led_default "power" "power" "zyxel:blue:status" "1" - ;; - "shuttle,kd20") - ucidef_set_led_default "power" "power" "kd20:blue:status" "1" - ;; - "cloudengines,pogoplug"*) - ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1" - ;; - -esac - -board_config_flush - -exit 0 diff --git a/target/linux/oxnas/base-files/etc/diag.sh b/target/linux/oxnas/base-files/etc/diag.sh deleted file mode 100644 index b8a51c2769..0000000000 --- a/target/linux/oxnas/base-files/etc/diag.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# Copyright (C) 2009-2013 OpenWrt.org - -. /lib/functions.sh -. /lib/functions/leds.sh - -get_status_led() { - case $(board_name) in - "akitio,mycloud") - status_led="akitio:red:status" - ;; - "mitrastar,stg-212") - status_led="zyxel:blue:status" - ;; - "shuttle,kd20") - status_led="kd20:blue:status" - ;; - "cloudengines,pogoplug"*) - status_led="pogoplug:blue:internal" - ;; - esac -} - -set_state() { - get_status_led - - case "$1" in - preinit) - status_led_blink_preinit - ;; - failsafe) - status_led_blink_failsafe - ;; - preinit_regular) - status_led_blink_preinit_regular - ;; - done) - status_led_on - ;; - esac -} |