diff options
Diffstat (limited to 'target/linux/oxnas/base-files/etc/board.d/01_leds')
-rwxr-xr-x | target/linux/oxnas/base-files/etc/board.d/01_leds | 25 |
1 files changed, 25 insertions, 0 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 new file mode 100755 index 0000000..17e37cd --- /dev/null +++ b/target/linux/oxnas/base-files/etc/board.d/01_leds @@ -0,0 +1,25 @@ +#!/bin/sh + +. /lib/functions/uci-defaults-new.sh +. /lib/oxnas.sh + +board=$(oxnas_board_name) +board_config_update + +case $board in + stg-212) + ucidef_set_led_default "power" "power" "zyxel:blue:status" "1" + ucidef_set_led_usbdev "usb" "USB" "$1" "1-1" + ;; + kd20) + ucidef_set_led_default "power" "power" "kd20:blue:status" "1" + ;; + pogoplugpro | pogoplugv3) + ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1" + ;; + +esac + +board_config_flush + +exit 0 |