summaryrefslogtreecommitdiff
path: root/package/system/procd
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-11-19 00:03:42 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-11-19 00:03:42 +0000
commite3a977a34885875c2c5741ac18cf970280753c4c (patch)
tree9faec5929fabfe108bf152868a8143fe38a2117f /package/system/procd
parentfcb3566b2ab7dbfcc7843f8ab5e8b89716215ce2 (diff)
procd: emit tty events for ttyUSB* even when they come from the usb-serial subsystem
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38862 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system/procd')
-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" ]
],
]