mirror of
https://github.com/MengMengCode/VoCat.git
synced 2026-08-22 15:53:43 +08:00
feat: support Sierra EM7430 MBIM modems
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# Some kernels omit the EM7430's 1199:9077 serial ID. Load MBIM before option
|
||||
# so interfaces 12/13 stay with cdc_mbim, then expose interface 3 as the AT
|
||||
# port. This is intentionally restricted to the exact device ID.
|
||||
if [ "$(id -u)" = "0" ] && [ -e /sys/bus/usb/devices ]; then
|
||||
modprobe cdc_mbim >/dev/null 2>&1 || true
|
||||
modprobe option >/dev/null 2>&1 || true
|
||||
if [ -w /sys/bus/usb-serial/drivers/option1/new_id ]; then
|
||||
printf '%s\n' '1199 9077' > /sys/bus/usb-serial/drivers/option1/new_id 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
# pcscd daemonizes after startup. Keep failure non-fatal so modem-only
|
||||
# deployments remain usable and the UI can report a reader diagnostic.
|
||||
if [ "$(id -u)" = "0" ] && command -v pcscd >/dev/null 2>&1; then
|
||||
|
||||
Reference in New Issue
Block a user