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 <mre...@tenxnetworks.com>

--- package/system/procd/files/hotplug.json     2014-05-27 22:34:33.175634831 
+0000
+++ package/system/procd/files/hotplug.json     2014-06-06 20:47:13.736795246 
+0000
@@ -13,7 +13,7 @@
                                                                [ "null", 
"full", "ptmx", "zero" ],
                                                        ],
                                                        [ "regex", "DEVNAME",
-                                                               [ "^gpio", 
"^hvc", "^tty" ],
+                                                               [ "^gpio", 
"^hvc" ],
                                                        ],
                                                ],
                                                [
@@ -76,10 +76,10 @@
        ],
        [ "if",
                [ "and",
-                       [ "eq", "SUBSYSTEM",
-                               [ "tty", "usb-serial" ]
-                       ],
-                       [ "regex", "DEVNAME", "^ttyUSB" ],
+                       [ "eq", "SUBSYSTEM", "usb-serial" ],
+                       [ "regex", "DEVNAME",
+                               [ "^ttyUSB", "^ttyACM" ]
+                       ],
                ],
                [ "exec", "/sbin/hotplug-call", "tty" ]
        ],
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to