diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index d5bc38ecd722673109fb72c8c3d7dcd8d5b40729..45bf77b5cfb3c1d55442a11d1fc27282985dfaa8 100755 --- a/package/base-files/files/bin/config_generate +++ b/package/base-files/files/bin/config_generate @@ -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 diff --git a/package/base-files/files/lib/functions/uci-defaults-new.sh b/package/base-files/files/lib/functions/uci-defaults-new.sh index 6f9d716e9b1785b9ece2cf63f1db39a4a5547981..2ea0742e1e23156471a18f92169f8019776e6ce3 100755 --- a/package/base-files/files/lib/functions/uci-defaults-new.sh +++ b/package/base-files/files/lib/functions/uci-defaults-new.sh @@ -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"