base-files: uci-defaults-new: remove ucidef_set_led_interface()
The only user was the hg255d board and config_generate did not even emit proper uci for it. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47658
This commit is contained in:
parent
ecf5b4fab7
commit
8b9e839955
@ -293,7 +293,7 @@ generate_led() {
|
||||
|
||||
json_select led
|
||||
json_select "$key"
|
||||
json_get_vars name sysfs type trigger device interface default port_mask
|
||||
json_get_vars name sysfs type trigger device default port_mask
|
||||
|
||||
uci -q batch <<-EOF
|
||||
delete system.$cfg
|
||||
|
@ -248,22 +248,6 @@ ucidef_set_led_netdev() {
|
||||
json_select ..
|
||||
}
|
||||
|
||||
ucidef_set_led_interface() {
|
||||
local name="$1"
|
||||
local sysfs="$2"
|
||||
|
||||
json_select_object led
|
||||
|
||||
json_select_object "$1"
|
||||
json_add_string name "$name"
|
||||
json_add_string type interface
|
||||
json_add_string sysfs "$sysfs"
|
||||
json_add_string interface "$name"
|
||||
json_select ..
|
||||
|
||||
json_select ..
|
||||
}
|
||||
|
||||
ucidef_set_led_usbdev() {
|
||||
local cfg="led_$1"
|
||||
local name="$2"
|
||||
|
Loading…
Reference in New Issue
Block a user