aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-10 15:06:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-11-10 15:06:28 +0000
commit8326da8cf70a40bfd9c921fce2dcf410205e3832 (patch)
tree20358d0a757ca00ddcc3dc6dc161de9535ec7117 /package/system/procd/files
parent3bdbd057b3eb9bc8caa6acb3a4a9ea341f997de5 (diff)
downloadupstream-8326da8cf70a40bfd9c921fce2dcf410205e3832.tar.gz
upstream-8326da8cf70a40bfd9c921fce2dcf410205e3832.tar.bz2
upstream-8326da8cf70a40bfd9c921fce2dcf410205e3832.zip
procd: reduce the number of unnecessary calls to /sbin/hotplug-call for tty devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38705 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system/procd/files')
-rw-r--r--package/system/procd/files/hotplug.json10
1 files changed, 8 insertions, 2 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index 8285311a7c..bcd169034b 100644
--- a/package/system/procd/files/hotplug.json
+++ b/package/system/procd/files/hotplug.json
@@ -69,8 +69,14 @@
[ "exec", "/etc/rc.button/%BUTTON%" ]
],
[ "if",
- [ "eq", "SUBSYSTEM",
- [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "tty", "button" ]
+ [ "or",
+ [ "eq", "SUBSYSTEM",
+ [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "button" ],
+ ],
+ [ "and",
+ [ "eq", "SUBSYSTEM", "tty" ],
+ [ "regex", "DEVNAME", "^ttyUSB" ],
+ ]
],
[ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ]
],