[openwrt/openwrt] umbim: log output of 'config' step

LEDE Commits lede-commits at lists.infradead.org
Sat Apr 29 12:39:15 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5f873df8d4b79521e5f8f7ea55e8b299bfef0d24

commit 5f873df8d4b79521e5f8f7ea55e8b299bfef0d24
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Sat Nov 6 03:02:08 2021 +0100

    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 <lech.perczak at gmail.com>
---
 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




More information about the lede-commits mailing list