]> git.99rst.org Git - openwrt-packages.git/commitdiff
modemmanager: skip virtual net devices in hotplug script
authorMichael Pfeifroth <redacted>
Mon, 3 Aug 2026 09:13:18 +0000 (11:13 +0200)
committerFlorian Eckert <redacted>
Mon, 3 Aug 2026 11:03:31 +0000 (13:03 +0200)
Every net uevent - eth ports, USB hubs, bridges, taps, SQM IFB,
GRE tunnels, veth, tun/tap - is handed to mmcli via
25-modemmanager-net's mm_report_event call, so ModemManager logs a
'not supported by any plugin' notice per device on every boot and
hotplug replay:

  ModemManager[15132]: <msg> [base-manager] couldn't check support
    for device '.../fsl-ehci.0/usb1/1-1/1-1.1':
    not supported by any plugin

mm_report_event() already discards virtual devices internally, but
only after mm_log "info" has written a "hotplug: add network
interface XXX: event processed" line to daemon.info for every one
of them.

Mirror the same guard in the hotplug script by exiting early when
DEVPATH points under /devices/virtual/*, which covers SQM IFB, GRE,
bridges, veth, tun/tap.  This never rejects a physical modem port
(kernel wwan, MHI, USB CDC/RNDIS/QMI/MBIM are all under real bus
subtrees).

Signed-off-by: Michael Pfeifroth <redacted>
net/modemmanager/files/etc/hotplug.d/net/25-modemmanager-net

index ff46420190a036ceade8bbeb8ddac7f56bca4899..1730934f2ea2858bd2f2e3ae030d7d4416017957 100644 (file)
@@ -8,6 +8,13 @@
 # We require a interface name
 [ -n "${INTERFACE}" ] || exit
 
+# Virtual net devices (SQM IFB, GRE, bridges, veth, tun/tap, ...)
+# can never be modems; mm_report_event drops them internally, skip
+# the log-noisy hotplug script entirely.
+case "${DEVPATH}" in
+       /devices/virtual/*) exit ;;
+esac
+
 # Always make sure the rundir exists
 mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}"
 
git clone https://git.99rst.org/PROJECT