openwrt/target/linux/kirkwood/base-files/etc/board.d/01_leds
Pawel Dembicki bbe7124945 kirkwood: move led triggers to dts
This patch moves led trigger settings from 01_leds file to dts.

Now "linux,default-trigger" property is used.

Tested-by: Alberto Bursi <bobafetthotmail@gmail.com> [nsa310,nsa325]
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
2020-06-14 21:16:20 +02:00

24 lines
362 B
Bash
Executable File

#!/bin/sh
#
# Copyright (C) 2012-2015 OpenWrt.org
#
. /lib/functions/uci-defaults.sh
board_config_update
board=$(board_name)
case "$board" in
"iom,ix2-200")
ucidef_set_led_timer "health" "health" "status:white:rebuild_led" "200" "800"
;;
"linksys,viper")
ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
;;
esac
board_config_flush
exit 0