diff options
author | John Crispin <blogic@openwrt.org> | 2015-04-21 13:18:40 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-04-21 13:18:40 +0000 |
commit | 2549c08bb2ba5091889e5f352c67f75bff76f09e (patch) | |
tree | ecc032a3f6cfb7d771f0c65e3f8f03d65f551ba9 /package/network/utils/umbim/files | |
parent | 4ed2b35d8683be5fc5cebb921412373841cd73a3 (diff) | |
download | master-187ad058-2549c08bb2ba5091889e5f352c67f75bff76f09e.tar.gz master-187ad058-2549c08bb2ba5091889e5f352c67f75bff76f09e.tar.bz2 master-187ad058-2549c08bb2ba5091889e5f352c67f75bff76f09e.zip |
umbim: auto retry when bringup fails
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45555 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils/umbim/files')
-rwxr-xr-x | package/network/utils/umbim/files/lib/netifd/proto/mbim.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh index 461e5fa20c..db0c7b0c3c 100755 --- a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh +++ b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh @@ -19,7 +19,7 @@ proto_mbim_init_config() { proto_config_add_string password } -proto_mbim_setup() { +_proto_mbim_setup() { local interface="$1" local tid=2 local ret @@ -140,6 +140,20 @@ proto_mbim_setup() { ubus call network add_dynamic "$(json_dump)" } +proto_mbim_setup() { + local ret + + _proto_mbim_setup $@ + ret=$? + + [ "$ret" = 0 ] || { + logger "mbim bringup failed, retry in 15s" + sleep 15 + } + + return $rt +} + proto_mbim_teardown() { local interface="$1" |