Add more license tags with SPDX identifiers
[openwrt.git] / package / system / procd / files / hotplug.json
index c1b45c6..d574019 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" ]
+                       [ "net", "input", "usb", "usbmisc", "ieee1394", "block", "atm", "zaptel", "tty", "button" ]
                ],
                [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ]
        ],
+       [ "if",
+               [ "and",
+                       [ "eq", "SUBSYSTEM", "usb-serial" ],
+                       [ "regex", "DEVNAME",
+                               [ "^ttyUSB", "^ttyACM" ]
+                       ],
+               ],
+               [ "exec", "/sbin/hotplug-call", "tty" ]
+       ],
 ]