[OpenWrt-Devel] [PATCH 01/10] ltq-vdsl-app: replace backticks by $(...)

Adrian Schmutzler freifunk at adrianschmutzler.de
Sun May 10 10:47:45 EDT 2020


This replaces deprecated backticks by more versatile $(...) syntax.

Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 package/network/config/ltq-vdsl-app/files/dsl_cpe_pipe.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/config/ltq-vdsl-app/files/dsl_cpe_pipe.sh b/package/network/config/ltq-vdsl-app/files/dsl_cpe_pipe.sh
index 30393b281e..9002b7b316 100755
--- a/package/network/config/ltq-vdsl-app/files/dsl_cpe_pipe.sh
+++ b/package/network/config/ltq-vdsl-app/files/dsl_cpe_pipe.sh
@@ -12,7 +12,7 @@ esac
 #echo "Call dsl_pipe with $*"
 lock /var/lock/dsl_pipe
 echo $* > /tmp/pipe/dsl_cpe${pipe_no}_cmd
-result=`cat /tmp/pipe/dsl_cpe${pipe_no}_ack`
+result=$(cat /tmp/pipe/dsl_cpe${pipe_no}_ack)
 lock -u /var/lock/dsl_pipe
 
 echo "$result"
-- 
2.20.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list