diff options
Diffstat (limited to 'package/network/utils/umbim/files/lib/netifd/proto/mbim.sh')
-rwxr-xr-x | package/network/utils/umbim/files/lib/netifd/proto/mbim.sh | 3 |
1 files changed, 2 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 db716c3dbf..a33759cd6d 100755 --- a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh +++ b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh @@ -86,7 +86,8 @@ _proto_mbim_setup() { tid=$((tid + 1)) echo "mbim[$$]" "Checking pin" - umbim $DBG -n -t $tid -d $device pinstate || { + umbim $DBG -n -t $tid -d $device pinstate + [ $? -eq 2 ] && { echo "mbim[$$]" "PIN required" tid=$((tid + 1)) umbim $DBG -t $tid -d "$device" disconnect |