diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-07 11:54:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-07 11:54:13 +0000 |
commit | 71cda6a1e01964313aa6a718ec64dd50c7940352 (patch) | |
tree | f6134fc00d440c16f6c48ad1142c5b0a46a3115c /package | |
parent | 7ec499eca5b652b601251ed1fd667e51d8f559a2 (diff) | |
download | mtk-20170518-71cda6a1e01964313aa6a718ec64dd50c7940352.zip mtk-20170518-71cda6a1e01964313aa6a718ec64dd50c7940352.tar.gz mtk-20170518-71cda6a1e01964313aa6a718ec64dd50c7940352.tar.bz2 |
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
Diffstat (limited to 'package')
-rw-r--r-- | package/system/procd/files/hotplug.json | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json index b312178..57fc40e 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" ] ], |