others: switch4g: simplify regex for checking if uqmi is up

arm-sdk7
pedro 4 years ago
parent 8009dbee8b
commit a522191e08

@ -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"} \

Loading…
Cancel
Save