projects
/
openwrt
/
staging
/
robimarko.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e78e720
)
procd: reduce the number of unnecessary calls to /sbin/hotplug-call for tty devices
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 10 Nov 2013 15:06:28 +0000
(15:06 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 10 Nov 2013 15:06:28 +0000
(15:06 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38705
package/system/procd/files/hotplug.json
patch
|
blob
|
history
diff --git
a/package/system/procd/files/hotplug.json
b/package/system/procd/files/hotplug.json
index 8285311a7ca5024543dfb8bd948a412389447ef1..bcd169034b342d405a2802cca292524b11d04252 100644
(file)
--- 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%" ]
],