base-files: board.d: support ide leds
Add ucidef_set_led_ide() to define "ide-disk" triggered leds. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47729
This commit is contained in:
parent
734ae1bd17
commit
b3f8340a5e
1 changed files with 16 additions and 0 deletions
|
@ -406,6 +406,22 @@ ucidef_set_led_gpio() {
|
||||||
json_select ..
|
json_select ..
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ucidef_set_led_ide() {
|
||||||
|
local cfg="led_$1"
|
||||||
|
local name="$2"
|
||||||
|
local sysfs="$3"
|
||||||
|
|
||||||
|
json_select_object led
|
||||||
|
|
||||||
|
json_select_object "$1"
|
||||||
|
json_add_string name "$name"
|
||||||
|
json_add_string sysfs "$sysfs"
|
||||||
|
json_add_string trigger ide-disk
|
||||||
|
json_select ..
|
||||||
|
|
||||||
|
json_select ..
|
||||||
|
}
|
||||||
|
|
||||||
ucidef_set_led_rssi() {
|
ucidef_set_led_rssi() {
|
||||||
local cfg="led_$1"
|
local cfg="led_$1"
|
||||||
local name="$2"
|
local name="$2"
|
||||||
|
|
Loading…
Reference in a new issue