umbim: add "_proto_mbim_get_field" helper
authorLech Perczak <lech.perczak@gmail.com>
Sat, 6 Nov 2021 12:21:32 +0000 (13:21 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Apr 2023 19:33:05 +0000 (21:33 +0200)
commitf01fff63fbe61186128e000a3bccb7ed159fcb0c
tree7d84291fa2fe174be309bc8db999cdba7ad2a0a6
parent5f873df8d4b79521e5f8f7ea55e8b299bfef0d24
umbim: add "_proto_mbim_get_field" helper

Add a new helper to extract IP configuration from umbim output. This is
required to extract fields which can possibly have multiple values,
namely IP addresses and DNS servers, and get rid of primitive parser
using 'eval' builtin without support for this.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
package/network/utils/umbim/files/lib/netifd/proto/mbim.sh