procd: Fix USB cellular modems hotplug events
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 7 Jun 2014 11:54:13 +0000 (11:54 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 7 Jun 2014 11:54:13 +0000 (11:54 +0000)
Without this patch, /etc/hotplug.d/tty/30-3g won't be called when you insert or remove a USB-serial cellular modem.

(see Ticket #14117)

Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41039 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/system/procd/files/hotplug.json

index b312178..57fc40e 100644 (file)
@@ -13,7 +13,7 @@
                                                                [ "null", "full", "ptmx", "zero" ],
                                                        ],
                                                        [ "regex", "DEVNAME",
-                                                               [ "^gpio", "^hvc", "^tty" ],
+                                                               [ "^gpio", "^hvc" ],
                                                        ],
                                                ],
                                                [
        ],
        [ "if",
                [ "and",
-                       [ "eq", "SUBSYSTEM",
-                               [ "tty", "usb-serial" ]
+                       [ "eq", "SUBSYSTEM", "usb-serial" ],
+                       [ "regex", "DEVNAME",
+                               [ "^ttyUSB", "^ttyACM" ]
                        ],
-                       [ "regex", "DEVNAME", "^ttyUSB" ],
                ],
                [ "exec", "/sbin/hotplug-call", "tty" ]
        ],