procd: Fix USB cellular modems hotplug events
authorFelix Fietkau <nbd@openwrt.org>
Sat, 7 Jun 2014 11:54:13 +0000 (11:54 +0000)
committerFelix Fietkau <nbd@openwrt.org>
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>
SVN-Revision: 41039

package/system/procd/files/hotplug.json

index b3121789e0ace21917ba3989ad7f34c59fac8f1e..57fc40e54493c25d531b099f1ac38c24561bb896 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" ]
        ],