aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-06-26 12:36:01 +0200
committerPetr Štetiar <ynezz@true.cz>2019-07-03 07:45:00 +0200
commit313444a79e9d1ced42223a9c92cb677b6e6e286e (patch)
tree9b62146dc5af32f3ad64e084d32b42839e57236d /package/network
parent537b801c5490a85a3ef36456b12f064fc6c665a2 (diff)
downloadupstream-313444a79e9d1ced42223a9c92cb677b6e6e286e.tar.gz
upstream-313444a79e9d1ced42223a9c92cb677b6e6e286e.tar.bz2
upstream-313444a79e9d1ced42223a9c92cb677b6e6e286e.zip
comgt: add delay option for 3g proto
All protos for wwan (ncm,qmi,mbim) do have a delay option. To standardize that add also the missing delay option to the 3g proto. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/utils/comgt/files/3g.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/network/utils/comgt/files/3g.sh b/package/network/utils/comgt/files/3g.sh
index 0d02d4c4b9..9220cbf5a0 100644
--- a/package/network/utils/comgt/files/3g.sh
+++ b/package/network/utils/comgt/files/3g.sh
@@ -17,6 +17,7 @@ proto_3g_init_config() {
proto_config_add_string "apn"
proto_config_add_string "service"
proto_config_add_string "pincode"
+ proto_config_add_string "delay"
proto_config_add_string "dialnumber"
}
@@ -29,6 +30,7 @@ proto_3g_setup() {
json_get_var service service
json_get_var pincode pincode
json_get_var dialnumber dialnumber
+ json_get_var delay delay
[ -n "$dat_device" ] && device=$dat_device
@@ -38,6 +40,8 @@ proto_3g_setup() {
return 1
}
+ [ -n "$delay" ] && sleep "$delay"
+
case "$service" in
cdma|evdo)
chat="/etc/chatscripts/evdo.chat"