From a522191e08af037f528a0ab8d558a80fc94209a1 Mon Sep 17 00:00:00 2001 From: pedro Date: Mon, 14 Mar 2022 14:27:59 +0100 Subject: [PATCH] others: switch4g: simplify regex for checking if uqmi is up --- release/src-rt-6.x.4708/router/others/switch4g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/src-rt-6.x.4708/router/others/switch4g b/release/src-rt-6.x.4708/router/others/switch4g index 9eb1eef0fc..ad4402a283 100755 --- a/release/src-rt-6.x.4708/router/others/switch4g +++ b/release/src-rt-6.x.4708/router/others/switch4g @@ -721,7 +721,7 @@ uqmiCall() { # wait for another uqmi process to exit... while [ "$COUNT" -lt 5 ]; do - [ "$(ps | grep uqmi | grep "$DEVNR" | grep -v "grep" | wc -l)" -eq 0 ] && { + [ "$(ps | grep [u]qmi | grep "$DEVNR" | wc -l)" -eq 0 ] && { [ "$IS_ITCONN" -eq 1 ] && { uqmi -s -d "$DEVNR" $COMMAND \ ${APN:+--apn "$APN"} \