[source] lantiq: fix lantiq_dsl.sh status and lucistat output
LEDE Commits
lede-commits at lists.infradead.org
Sat Jun 3 10:31:10 PDT 2017
hauke pushed a commit to source.git, branch master:
https://git.lede-project.org/666dd85b3693390347ab2bfeaa2159585e054fd1
commit 666dd85b3693390347ab2bfeaa2159585e054fd1
Author: Helge Mader <ma at dev.tdt.de>
AuthorDate: Wed May 31 11:20:49 2017 +0200
lantiq: fix lantiq_dsl.sh status and lucistat output
Signed-off-by: Helge Mader <ma at dev.tdt.de>
---
.../lantiq/base-files/lib/functions/lantiq_dsl.sh | 24 +++++++++++-----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh
index feaafe6..622fa5e 100755
--- a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh
+++ b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh
@@ -623,23 +623,23 @@ line_data() {
sattndru=$(scale $attndru)
if [ "$action" = "lucistat" ]; then
- echo "dsl.line_attenuation_down=$latnd"
- echo "dsl.line_attenuation_up=$latnu"
- echo "dsl.noise_margin_down=$snrd"
- echo "dsl.noise_margin_up=$snru"
- echo "dsl.signal_attenuation_down=$satnd"
- echo "dsl.signal_attenuation_up=$satnu"
- echo "dsl.actatp_down=$actatpd"
- echo "dsl.actatp_up=$actatpu"
+ echo "dsl.line_attenuation_down=\"$latnd\""
+ echo "dsl.line_attenuation_up=\"$latnu\""
+ echo "dsl.noise_margin_down=\"$snrd\""
+ echo "dsl.noise_margin_up=\"$snru\""
+ echo "dsl.signal_attenuation_down=\"$satnd\""
+ echo "dsl.signal_attenuation_up=\"$satnu\""
+ echo "dsl.actatp_down=\"$actatpd\""
+ echo "dsl.actatp_up=\"$actatpu\""
echo "dsl.max_data_rate_down=$attndrd"
echo "dsl.max_data_rate_up=$attndru"
echo "dsl.max_data_rate_down_s=\"$sattndrd\""
echo "dsl.max_data_rate_up_s=\"$sattndru\""
else
- echo "Line Attenuation (LATN): Down: ${latnd}dB / Up: ${latnu}dB"
- echo "Signal Attenuation (SATN): Down: ${satnd}dB / Up: ${satnu}dB"
- echo "Noise Margin (SNR): Down: ${snrd}dB / Up: ${snru}dB"
- echo "Aggregate Transmit Power (ACTATP): Down: ${actatpd}dB / Up: ${actatpu}dB"
+ echo "Line Attenuation (LATN): Down: ${latnd} dB / Up: ${latnu} dB"
+ echo "Signal Attenuation (SATN): Down: ${satnd} dB / Up: ${satnu} dB"
+ echo "Noise Margin (SNR): Down: ${snrd} dB / Up: ${snru} dB"
+ echo "Aggregate Transmit Power (ACTATP): Down: ${actatpd} dB / Up: ${actatpu} dB"
echo "Max. Attainable Data Rate (ATTNDR): Down: ${sattndrd}/s / Up: ${sattndru}/s"
fi
}
More information about the lede-commits
mailing list