From a47b14ce7ffd50c769aaa9158bfc3039fc401d7f Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 7 Jun 2014 11:54:13 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41039 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/system/procd/files/hotplug.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json index b3121789e0..57fc40e544 100644 --- a/package/system/procd/files/hotplug.json +++ b/package/system/procd/files/hotplug.json @@ -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" ] + [ "eq", "SUBSYSTEM", "usb-serial" ], + [ "regex", "DEVNAME", + [ "^ttyUSB", "^ttyACM" ] ], - [ "regex", "DEVNAME", "^ttyUSB" ], ], [ "exec", "/sbin/hotplug-call", "tty" ] ], -- 2.11.0