diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-11-26 12:46:09 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-11-26 12:46:09 +0000 |
commit | 8b9e8399558980bd79b39f6601c61138d3471636 (patch) | |
tree | 0b85890e2fe43fdb4c84ac85854bddaa3cd226ac /package/base-files | |
parent | ecf5b4fab774ba32e8a9e9e86950486d7c2f916f (diff) | |
download | mtk-20170518-8b9e8399558980bd79b39f6601c61138d3471636.zip mtk-20170518-8b9e8399558980bd79b39f6601c61138d3471636.tar.gz mtk-20170518-8b9e8399558980bd79b39f6601c61138d3471636.tar.bz2 |
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
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/bin/config_generate | 2 | ||||
-rwxr-xr-x | package/base-files/files/lib/functions/uci-defaults-new.sh | 16 |
2 files changed, 1 insertions, 17 deletions
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index d5bc38e..45bf77b 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 6f9d716..2ea0742 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" |