Browse Source

ltq-dsl-base: remove useless echos in lantiq_dsl.sh

The is no reason to catch the output by $() and then echo it again.

Remove the useless echos.

Signed-off-by: Adrian Schmutzler <[email protected]>
Adrian Schmutzler 5 years ago
parent
commit
18ab496c32

+ 1 - 1
package/network/utils/ltq-dsl-base/Makefile

@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ltq-dsl-base
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 include $(INCLUDE_DIR)/package.mk
 

+ 2 - 2
package/network/utils/ltq-dsl-base/files/lib/functions/lantiq_dsl.sh

@@ -19,10 +19,10 @@ dsl_cmd() {
 	)
 }
 dsl_val() {
-	echo $(expr "$1" : '.*'$2'=\([-\.[:alnum:]]*\).*')
+	expr "$1" : '.*'$2'=\([-\.[:alnum:]]*\).*'
 }
 dsl_string() {
-	echo $(expr "$1" : '.*'$2'=(\([A-Z0-9,]*\))')
+	expr "$1" : '.*'$2'=(\([A-Z0-9,]*\))'
 }
 
 #