diff options
author | Jongmin Kim <jmkim@debian.org> | 2025-03-08 21:57:12 +0900 |
---|---|---|
committer | Jongmin Kim <jmkim@debian.org> | 2025-03-08 22:02:00 +0900 |
commit | 3d1c16fe8134d987743ab1c58ba06f99ff99b8e8 (patch) | |
tree | 85c8ed875c3d62f12b61f828e3992f11b31fc02a | |
parent | fbeaffe2fd3b26d3e95b317e4af962e3da56efe6 (diff) |
fcc-unlock: Case-insensitive grep for identifying MBIM port
Signed-off-by: Jongmin Kim <jmkim@debian.org>
-rw-r--r-- | data/dispatcher-fcc-unlock/2c7c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/dispatcher-fcc-unlock/2c7c b/data/dispatcher-fcc-unlock/2c7c index fc1a3d33..d5542918 100644 --- a/data/dispatcher-fcc-unlock/2c7c +++ b/data/dispatcher-fcc-unlock/2c7c @@ -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 |