From: Lech Perczak Date: Sat, 6 Nov 2021 02:02:08 +0000 (+0100) Subject: umbim: log output of 'config' step X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5f873df8d4b79521e5f8f7ea55e8b299bfef0d24;p=openwrt%2Fstaging%2Fblocktrron.git 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 --- 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