aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2017-10-24 16:20:22 +0200
committerJohn Crispin <john@phrozen.org>2017-10-24 16:20:22 +0200
commit06d5d01e8acb4c7012bfa1ce8d432816b98088b0 (patch)
treede28d3a3cd5393f74fb5332ac40d2728666abf6c
parent09582d6b4d979375dc8da8a9a3d36d4cab884c1c (diff)
downloadupstream-06d5d01e8acb4c7012bfa1ce8d432816b98088b0.tar.gz
upstream-06d5d01e8acb4c7012bfa1ce8d432816b98088b0.tar.bz2
upstream-06d5d01e8acb4c7012bfa1ce8d432816b98088b0.zip
uqmi: replace legacy command invoke with newer type
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
index 079c229928..9c953ea697 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -111,7 +111,7 @@ proto_qmi_setup() {
echo "Starting network $interface"
- pdptype=`echo "$pdptype" | awk '{print tolower($0)}'`
+ pdptype=$(echo "$pdptype" | awk '{print tolower($0)}')
[ "$pdptype" = "ip" -o "$pdptype" = "ipv6" -o "$pdptype" = "ipv4v6" ] || pdptype="ip"
if [ "$pdptype" = "ip" ]; then
@@ -122,7 +122,7 @@ proto_qmi_setup() {
fi
[ "$pdptype" = "ip" -o "$pdptype" = "ipv4v6" ] && {
- cid_4=`uqmi -s -d "$device" --get-client-id wds`
+ cid_4=$(uqmi -s -d "$device" --get-client-id wds)
[ $? -ne 0 ] && {
echo "Unable to obtain client ID"
proto_notify_error "$interface" NO_CID
@@ -136,14 +136,14 @@ proto_qmi_setup() {
--stop-network 0xffffffff \
--autoconnect > /dev/null
- pdh_4=`uqmi -s -d "$device" --set-client-id wds,"$cid_4" \
+ pdh_4=$(uqmi -s -d "$device" --set-client-id wds,"$cid_4" \
--start-network \
${apn:+--apn $apn} \
${profile:+--profile $profile} \
${auth:+--auth-type $auth} \
${username:+--username $username} \
${password:+--password $password} \
- ${autoconnect:+--autoconnect}`
+ ${autoconnect:+--autoconnect})
[ $? -ne 0 ] && {
echo "Unable to connect IPv4"
uqmi -s -d "$device" --set-client-id wds,"$cid_4" --release-client-id wds
@@ -153,7 +153,7 @@ proto_qmi_setup() {
}
[ "$pdptype" = "ipv6" -o "$pdptype" = "ipv4v6" ] && {
- cid_6=`uqmi -s -d "$device" --get-client-id wds`
+ cid_6=$(uqmi -s -d "$device" --get-client-id wds)
[ $? -ne 0 ] && {
echo "Unable to obtain client ID"
proto_notify_error "$interface" NO_CID
@@ -167,14 +167,14 @@ proto_qmi_setup() {
--stop-network 0xffffffff \
--autoconnect > /dev/null
- pdh_6=`uqmi -s -d "$device" --set-client-id wds,"$cid_6" \
+ pdh_6=$(uqmi -s -d "$device" --set-client-id wds,"$cid_6" \
--start-network \
${apn:+--apn $apn} \
${profile:+--profile $profile} \
${auth:+--auth-type $auth} \
${username:+--username $username} \
${password:+--password $password} \
- ${autoconnect:+--autoconnect}`
+ ${autoconnect:+--autoconnect})
[ $? -ne 0 ] && {
echo "Unable to connect IPv6"
uqmi -s -d "$device" --set-client-id wds,"$cid_6" --release-client-id wds