aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-19 00:03:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-11-19 00:03:42 +0000
commitc84a43cf40e9b7249d83810604830500a373d253 (patch)
tree81e8279939113c225b8c1b67b041b734628f09c2 /package/system
parent69598dd0201f6a1d9ac1c2037cd6c898a8a19a35 (diff)
downloadupstream-c84a43cf40e9b7249d83810604830500a373d253.tar.gz
upstream-c84a43cf40e9b7249d83810604830500a373d253.tar.bz2
upstream-c84a43cf40e9b7249d83810604830500a373d253.zip
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')
-rw-r--r--package/system/procd/files/hotplug.json17
1 files changed, 10 insertions, 7 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index bcd169034b..b3121789e0 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" ]
],
]