mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
bbe7124945
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>
24 lines
362 B
Bash
Executable File
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
|