1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-18 21:48:23 +02:00

procd: Fix USB cellular modems hotplug events

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
This commit is contained in:
Felix Fietkau 2014-06-07 11:54:13 +00:00
parent 7ec499eca5
commit 71cda6a1e0

@ -13,7 +13,7 @@
[ "null", "full", "ptmx", "zero" ], [ "null", "full", "ptmx", "zero" ],
], ],
[ "regex", "DEVNAME", [ "regex", "DEVNAME",
[ "^gpio", "^hvc", "^tty" ], [ "^gpio", "^hvc" ],
], ],
], ],
[ [
@ -76,10 +76,10 @@
], ],
[ "if", [ "if",
[ "and", [ "and",
[ "eq", "SUBSYSTEM", [ "eq", "SUBSYSTEM", "usb-serial" ],
[ "tty", "usb-serial" ] [ "regex", "DEVNAME",
[ "^ttyUSB", "^ttyACM" ]
], ],
[ "regex", "DEVNAME", "^ttyUSB" ],
], ],
[ "exec", "/sbin/hotplug-call", "tty" ] [ "exec", "/sbin/hotplug-call", "tty" ]
], ],