procd: handle hotplug events for the usbmisc subsystem
[openwrt/openwrt.git] / package / system / procd / files / hotplug.json
index b3121789e0ace21917ba3989ad7f34c59fac8f1e..d57401958158f136f289ae397d0e54f66ba7aef2 100644 (file)
@@ -13,7 +13,7 @@
                                                                [ "null", "full", "ptmx", "zero" ],
                                                        ],
                                                        [ "regex", "DEVNAME",
-                                                               [ "^gpio", "^hvc", "^tty" ],
+                                                               [ "^gpio", "^hvc" ],
                                                        ],
                                                ],
                                                [
        ],
        [ "if",
                [ "eq", "SUBSYSTEM",
-                       [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "tty", "button" ]
+                       [ "net", "input", "usb", "usbmisc", "ieee1394", "block", "atm", "zaptel", "tty", "button" ]
                ],
                [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ]
        ],
        [ "if",
                [ "and",
-                       [ "eq", "SUBSYSTEM",
-                               [ "tty", "usb-serial" ]
+                       [ "eq", "SUBSYSTEM", "usb-serial" ],
+                       [ "regex", "DEVNAME",
+                               [ "^ttyUSB", "^ttyACM" ]
                        ],
-                       [ "regex", "DEVNAME", "^ttyUSB" ],
                ],
                [ "exec", "/sbin/hotplug-call", "tty" ]
        ],