uqmi: fix indenting
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 10 Apr 2018 14:29:05 +0000 (16:29 +0200)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Thu, 11 Oct 2018 10:18:16 +0000 (12:18 +0200)
fix indenting

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index c60cae653a4296611b853c1d7f705c76895d2fcc..5b34185f320544645c79663dac1b1886b9dbd619 100755 (executable)
@@ -158,7 +158,7 @@ proto_qmi_setup() {
                        ${password:+--password $password} \
                        ${autoconnect:+--autoconnect})
 
-        # pdh_4 is a numeric value on success
+               # pdh_4 is a numeric value on success
                if ! [ "$pdh_4" -eq "$pdh_4" ] 2> /dev/null; then
                        echo "Unable to connect IPv4"
                        uqmi -s -d "$device" --set-client-id wds,"$cid_4" --release-client-id wds
@@ -166,14 +166,14 @@ proto_qmi_setup() {
                        return 1
                fi
 
-        # Check data connection state
+               # Check data connection state
                connstat=$(uqmi -s -d "$device" --get-data-status)
-                [ "$connstat" == '"connected"' ] || {
-                        echo "No data link!"
-                        uqmi -s -d "$device" --set-client-id wds,"$cid_4" --release-client-id wds
-                        proto_notify_error "$interface" CALL_FAILED
-                        return 1
-                }
+               [ "$connstat" == '"connected"' ] || {
+                       echo "No data link!"
+                       uqmi -s -d "$device" --set-client-id wds,"$cid_4" --release-client-id wds
+                       proto_notify_error "$interface" CALL_FAILED
+                       return 1
+               }
        }
 
        [ "$pdptype" = "ipv6" -o "$pdptype" = "ipv4v6" ] && {
@@ -195,7 +195,7 @@ proto_qmi_setup() {
                        ${password:+--password $password} \
                        ${autoconnect:+--autoconnect})
 
-        # pdh_6 is a numeric value on success
+               # pdh_6 is a numeric value on success
                if ! [ "$pdh_6" -eq "$pdh_6" ] 2> /dev/null; then
                        echo "Unable to connect IPv6"
                        uqmi -s -d "$device" --set-client-id wds,"$cid_6" --release-client-id wds
@@ -203,14 +203,14 @@ proto_qmi_setup() {
                        return 1
                fi
 
-        # Check data connection state
+               # Check data connection state
                connstat=$(uqmi -s -d "$device" --get-data-status)
-                [ "$connstat" == '"connected"' ] || {
-                        echo "No data link!"
-                        uqmi -s -d "$device" --set-client-id wds,"$cid_6" --release-client-id wds
-                        proto_notify_error "$interface" CALL_FAILED
-                        return 1
-                }
+               [ "$connstat" == '"connected"' ] || {
+                       echo "No data link!"
+                       uqmi -s -d "$device" --set-client-id wds,"$cid_6" --release-client-id wds
+                       proto_notify_error "$interface" CALL_FAILED
+                       return 1
+               }
        }
 
        echo "Setting up $ifname"