aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-07-01 09:30:26 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-04 13:23:09 +0200
commit3cb0eed8a1e403de78514dd243f522fcc21d1350 (patch)
tree41e908fdf7079050f725826e3e48db7a3d0941c5 /package
parentbd8e0746c8435fa267ab819deb737b02ce3cf2fb (diff)
downloadupstream-3cb0eed8a1e403de78514dd243f522fcc21d1350.tar.gz
upstream-3cb0eed8a1e403de78514dd243f522fcc21d1350.tar.bz2
upstream-3cb0eed8a1e403de78514dd243f522fcc21d1350.zip
uqmi: fix indentation style and boundary
Fix indentation style and boundary. Signed-off-by: Florian Eckert <fe@dev.tdt.de> (cherry picked from commit c06f2a2dcb2350d00cc6bd8300ec3861353d96ae)
Diffstat (limited to 'package')
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh14
1 files changed, 9 insertions, 5 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 81daddd0cc..8cbe9e97e7 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -30,11 +30,15 @@ proto_qmi_init_config() {
proto_qmi_setup() {
local interface="$1"
local dataformat connstat
- local device apn auth username password pincode delay modes pdptype profile dhcpv6 autoconnect plmn timeout mtu $PROTO_DEFAULT_OPTIONS
+ local device apn auth username password pincode delay modes pdptype
+ local profile dhcpv6 autoconnect plmn timeout mtu $PROTO_DEFAULT_OPTIONS
local ip4table ip6table
local cid_4 pdh_4 cid_6 pdh_6
local ip_6 ip_prefix_length gateway_6 dns1_6 dns2_6
- json_get_vars device apn auth username password pincode delay modes pdptype profile dhcpv6 autoconnect plmn ip4table ip6table timeout mtu $PROTO_DEFAULT_OPTIONS
+
+ json_get_vars device apn auth username password pincode delay modes
+ json_get_vars pdptype profile dhcpv6 autoconnect plmn ip4table
+ json_get_vars ip6table timeout mtu $PROTO_DEFAULT_OPTIONS
[ "$timeout" = "" ] && timeout="10"
@@ -328,9 +332,9 @@ proto_qmi_setup() {
proto_add_dns_server "$dns2_6"
}
[ -n "$zone" ] && {
- proto_add_data
- json_add_string zone "$zone"
- proto_close_data
+ proto_add_data
+ json_add_string zone "$zone"
+ proto_close_data
}
proto_send_update "$interface"
else