[OpenWrt-Devel] [PATCH v2 1/5] ltq-vdsl-app: use the final xtse format

Mathias Kresin openwrt at kresin.me
Wed Dec 30 15:59:22 EST 2015


This way we can drop the call to sed.

Signed-off-by: Mathias Kresin <openwrt at kresin.me>
---
 package/network/config/ltq-vdsl-app/files/dsl_control | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/package/network/config/ltq-vdsl-app/files/dsl_control b/package/network/config/ltq-vdsl-app/files/dsl_control
index f875e3d..cc65daa 100644
--- a/package/network/config/ltq-vdsl-app/files/dsl_control
+++ b/package/network/config/ltq-vdsl-app/files/dsl_control
@@ -14,13 +14,13 @@ EXTRA_HELP="	status  Get DSL status information
 # G.992.1 Annex A
 # G.992.3 Annex A / L-US1 / L_US-2 / M
 # G.992.5 Annex A / M
-xtse_adsl_a="04 00 04 00 4C 01 04 00"
+xtse_adsl_a="04_00_04_00_4C_01_04_00"
 
 # G.992.1 Annex B
 # G.992.3 Annex B
 # G.992.5 Annex B
 # G.993.2 Annex A/B/C
-xtse_adsl_b="10 00 10 00 00 04 00 00"
+xtse_adsl_b="10_00_10_00_00_04_00_00"
 
 # G.992.1 Annex B
 # G.992.3 Annex B
@@ -28,9 +28,9 @@ xtse_adsl_b="10 00 10 00 00 04 00 00"
 # G.992.5 Annex B
 # G.992.5 Annex J
 # G.993.2 Annex A/B/C
-xtse_adsl_j="10 00 10 40 00 04 01 00"
+xtse_adsl_j="10_00_10_40_00_04_01_00"
 
-xtse_vdsl="00 00 00 00 00 00 00 07"
+xtse_vdsl="00_00_00_00_00_00_00_07"
 
 service_triggers() {
 	procd_add_reload_trigger network
@@ -78,7 +78,7 @@ start_service() {
 
 	procd_open_instance
 	procd_set_param command /sbin/vdsl_cpe_control_wrapper \
-			-i`echo $xtse | sed "s/ /_/g"` \
+			-i$xtse \
 			-n /sbin/dsl_notify.sh \
 			-f ${firmware} \
 			-M ${mode}
-- 
1.9.1
_______________________________________________
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