fcc-unlock: Case-insensitive grep for identifying MBIM port
Signed-off-by: Jongmin Kim <jmkim@debian.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user