fcc-unlock: Case-insensitive grep for identifying MBIM port

Signed-off-by: Jongmin Kim <jmkim@debian.org>
This commit is contained in:
Jongmin Kim
2025-03-08 22:02:00 +09:00
parent fbeaffe2fd
commit 3d1c16fe81
+1 -1
View File
@@ -26,7 +26,7 @@ for PORT in "$@"; do
# match port type in Linux 5.14 and newer
grep -q MBIM "/sys/class/wwan/$PORT/type" 2>/dev/null ||
# match port name in Linux 5.13
echo "$PORT" | grep -q MBIM ||
echo "$PORT" | grep -qi MBIM ||
echo "$PORT" | grep -q cdc-wdm && {
MBIM_PORT="$PORT"
break