aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files
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
commita91d911f7d6c10dc1baeef1e6d9f422abebb3269 (patch)
tree9faec5929fabfe108bf152868a8143fe38a2117f /package/system/procd/files
parent37d0d29e5191840dc593753cf830a9fec07baa88 (diff)
downloadupstream-a91d911f7d6c10dc1baeef1e6d9f422abebb3269.tar.gz
upstream-a91d911f7d6c10dc1baeef1e6d9f422abebb3269.tar.bz2
upstream-a91d911f7d6c10dc1baeef1e6d9f422abebb3269.zip
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/files')
-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" ]
],
]