aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-11-26 12:46:09 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-11-26 12:46:09 +0000
commit8e2bb5834d3db2905386a80e96d27106e3eb6bc2 (patch)
treeb85a6977656620e99839f6e01eb592e9b3b39301 /package
parentbb4f570b2cacf93bed829c984787219e60f98ac4 (diff)
downloadmaster-187ad058-8e2bb5834d3db2905386a80e96d27106e3eb6bc2.tar.gz
master-187ad058-8e2bb5834d3db2905386a80e96d27106e3eb6bc2.tar.bz2
master-187ad058-8e2bb5834d3db2905386a80e96d27106e3eb6bc2.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47658 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/bin/config_generate2
-rwxr-xr-xpackage/base-files/files/lib/functions/uci-defaults-new.sh16
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 d5bc38ecd7..45bf77b5cf 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 6f9d716e9b..2ea0742e1e 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"