aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorLech Perczak <lech.perczak@gmail.com>2021-11-06 03:02:08 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2023-04-29 21:33:05 +0200
commit5f873df8d4b79521e5f8f7ea55e8b299bfef0d24 (patch)
treee275c3e09ecdde499b2755212d694dd05ec7e92a /package/network
parent9ddbcd73d8a6e4251414ff578d1dce1c846bdf4e (diff)
downloadupstream-5f873df8d4b79521e5f8f7ea55e8b299bfef0d24.tar.gz
upstream-5f873df8d4b79521e5f8f7ea55e8b299bfef0d24.tar.bz2
upstream-5f873df8d4b79521e5f8f7ea55e8b299bfef0d24.zip
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@gmail.com>
Diffstat (limited to 'package/network')
-rwxr-xr-xpackage/network/utils/umbim/files/lib/netifd/proto/mbim.sh4
1 files changed, 3 insertions, 1 deletions
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