diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-11-19 00:03:42 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-11-19 00:03:42 +0000 |
commit | c84a43cf40e9b7249d83810604830500a373d253 (patch) | |
tree | 81e8279939113c225b8c1b67b041b734628f09c2 /package/system/procd/files | |
parent | 69598dd0201f6a1d9ac1c2037cd6c898a8a19a35 (diff) | |
download | mtk-20170518-c84a43cf40e9b7249d83810604830500a373d253.zip mtk-20170518-c84a43cf40e9b7249d83810604830500a373d253.tar.gz mtk-20170518-c84a43cf40e9b7249d83810604830500a373d253.tar.bz2 |
procd: emit tty events for ttyUSB* even when they come from the usb-serial subsystem
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38862
Diffstat (limited to 'package/system/procd/files')
-rw-r--r-- | package/system/procd/files/hotplug.json | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json index bcd1690..b312178 100644 --- a/package/system/procd/files/hotplug.json +++ b/package/system/procd/files/hotplug.json @@ -69,15 +69,18 @@ [ "exec", "/etc/rc.button/%BUTTON%" ] ], [ "if", - [ "or", + [ "eq", "SUBSYSTEM", + [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "tty", "button" ] + ], + [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ] + ], + [ "if", + [ "and", [ "eq", "SUBSYSTEM", - [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "button" ], + [ "tty", "usb-serial" ] ], - [ "and", - [ "eq", "SUBSYSTEM", "tty" ], - [ "regex", "DEVNAME", "^ttyUSB" ], - ] + [ "regex", "DEVNAME", "^ttyUSB" ], ], - [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ] + [ "exec", "/sbin/hotplug-call", "tty" ] ], ] |