Changeset 47729


Ignore:
Timestamp:
2015-12-03T22:12:56+01:00 (2 years ago)
Author:
jow
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/functions/uci-defaults-new.sh

    r47728 r47729  
    407407} 
    408408 
     409ucidef_set_led_ide() { 
     410        local cfg="led_$1" 
     411        local name="$2" 
     412        local sysfs="$3" 
     413 
     414        json_select_object led 
     415 
     416        json_select_object "$1" 
     417        json_add_string name "$name" 
     418        json_add_string sysfs "$sysfs" 
     419        json_add_string trigger ide-disk 
     420        json_select .. 
     421 
     422        json_select .. 
     423} 
     424 
    409425ucidef_set_led_rssi() { 
    410426        local cfg="led_$1" 
Note: See TracChangeset for help on using the changeset viewer.