[OpenWrt-Devel] [PATCH 1/5] base-files: change type of adsl and vdsl to dsl only

Hauke Mehrtens hauke at hauke-m.de
Sun Feb 28 11:13:21 EST 2016


Instead of having two different types adsl and vdsl just create one dsl
type. This way we can use the same luci code for adsl and vdsl and the
config parameters are not so different.

Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/base-files/files/lib/functions/uci-defaults.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
index 31e4687..d403482 100755
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -326,7 +326,7 @@ ucidef_add_adsl_modem() {
 
 	json_select_object dsl
 		json_select_object modem
-			json_add_string type "adsl"
+			json_add_string type "dsl"
 			json_add_string annex "$annex"
 			json_add_string firmware "$firmware"
 		json_select ..
@@ -340,7 +340,7 @@ ucidef_add_vdsl_modem() {
 
 	json_select_object dsl
 		json_select_object modem
-			json_add_string type "vdsl"
+			json_add_string type "dsl"
 			json_add_string annex "$annex"
 			json_add_string tone "$tone"
 			json_add_string xfer_mode "$xfer_mode"
-- 
2.7.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list