From 5f873df8d4b79521e5f8f7ea55e8b299bfef0d24 Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Sat, 6 Nov 2021 03:02:08 +0100 Subject: [PATCH] umbim: log output of 'config' step Display full configuration obtained using MBIM control channel in the log, from umbim output verbatim, for easier troubleshooting, and in preparation for parser refactoring. Signed-off-by: Lech Perczak --- package/network/utils/umbim/files/lib/netifd/proto/mbim.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 fd8b345797..9ab7724232 100755 --- a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh +++ b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh @@ -179,7 +179,9 @@ _proto_mbim_setup() { local zone="$(fw3 -q network "$interface" 2>/dev/null)" echo "mbim[$$]" "Setting up $ifname" - eval $(umbim $DBG -n -t $tid -d $device config | sed 's/: /=/g') + local mbimconfig="$(umbim $DBG -n -t $tid -d $device config)" + echo "$mbimconfig" + eval $(echo "$mbimconfig" | sed 's/: /=/g') tid=$((tid + 1)) proto_init_update "$ifname" 1 -- 2.30.2