comgt: replace backticks by $(...)
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 10 May 2020 14:47:50 +0000 (16:47 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 13 May 2020 17:01:23 +0000 (19:01 +0200)
This replaces deprecated backticks by more versatile $(...) syntax.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/network/utils/comgt/files/ncm.sh

index 9aaaa25f37f1ae4e38fdfb83cc5a14089fed6cc6..f5bed7d5e1c2b5cb9d7693f303f1b2746b851d84 100644 (file)
@@ -34,7 +34,7 @@ proto_ncm_setup() {
 
        [ -n "$profile" ] || profile=1
 
-       pdptype=`echo "$pdptype" | awk '{print toupper($0)}'`
+       pdptype=$(echo "$pdptype" | awk '{print toupper($0)}')
        [ "$pdptype" = "IP" -o "$pdptype" = "IPV6" -o "$pdptype" = "IPV4V6" ] || pdptype="IP"
 
        [ -n "$ctl_device" ] && device=$ctl_device
@@ -73,7 +73,7 @@ proto_ncm_setup() {
 
        [ -n "$delay" ] && sleep "$delay"
 
-       manufacturer=`gcom -d "$device" -s /etc/gcom/getcardinfo.gcom | awk 'NF && $0 !~ /AT\+CGMI/ { sub(/\+CGMI: /,""); print tolower($1); exit; }'`
+       manufacturer=$(gcom -d "$device" -s /etc/gcom/getcardinfo.gcom | awk 'NF && $0 !~ /AT\+CGMI/ { sub(/\+CGMI: /,""); print tolower($1); exit; }')
        [ $? -ne 0 ] && {
                echo "Failed to get modem information"
                proto_notify_error "$interface" GETINFO_FAILED