diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-05-10 16:47:50 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-05-13 19:01:23 +0200 |
commit | 04a8d3f4530f6f0c81b4784121aa7d9c66342df8 (patch) | |
tree | 240ecb172eb970d546c2463a3abd3647d28d9290 | |
parent | ffa3a8e9b0fad746a50faf3c2a11b4e92b3d7092 (diff) | |
download | upstream-04a8d3f4530f6f0c81b4784121aa7d9c66342df8.tar.gz upstream-04a8d3f4530f6f0c81b4784121aa7d9c66342df8.tar.bz2 upstream-04a8d3f4530f6f0c81b4784121aa7d9c66342df8.zip |
comgt: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
-rw-r--r-- | package/network/utils/comgt/files/ncm.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/utils/comgt/files/ncm.sh b/package/network/utils/comgt/files/ncm.sh index 9aaaa25f37..f5bed7d5e1 100644 --- a/package/network/utils/comgt/files/ncm.sh +++ b/package/network/utils/comgt/files/ncm.sh @@ -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 |