summaryrefslogtreecommitdiff
path: root/package/system/procd/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-11-10 15:06:28 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-11-10 15:06:28 +0000
commite0b24fb749b5735d4f45925156f5241d69f22db9 (patch)
tree20358d0a757ca00ddcc3dc6dc161de9535ec7117 /package/system/procd/files
parent02f675d90756aa6933e1131804b8a91802126639 (diff)
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%" ]
],