From aea3cab77a847e0cd70fcf5bb95aa2fd4309b2f1 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Thu, 25 Jul 2019 00:47:13 +0200 Subject: lantiq: replace backticks by $(...) and remove useless echo This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler [decapitalized patch subject at submitter's request] Signed-off-by: Christian Lamparter --- target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'target/linux/lantiq/base-files/lib') 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 698d481140..cbdec1279c 100755 --- a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh @@ -290,8 +290,8 @@ xtse() { annex_s="$annex_s M," fi - annex_s=`echo ${annex_s:1}` - annex_s=`echo ${annex_s%?}` + annex_s=${annex_s:1} + annex_s=${annex_s%?} # Evaluate Line Mode (according to G.997.1, 7.3.1.1.1) @@ -346,8 +346,8 @@ xtse() { line_mode_s="$line_mode_s G.993.1 (VDSL)," fi - line_mode_s=`echo ${line_mode_s:1}` - line_mode_s=`echo ${line_mode_s%?}` + line_mode_s=${line_mode_s:1} + line_mode_s=${line_mode_s%?} xtse_s="${xtse1}, ${xtse2}, ${xtse3}, ${xtse4}, ${xtse5}, ${xtse6}, ${xtse7}, ${xtse8}" -- cgit v1.2.3