procd: reduce the number of unnecessary calls to /sbin/hotplug-call for tty devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38705
This commit is contained in:
parent
e78e720a6f
commit
f099defc00
1 changed files with 8 additions and 2 deletions
|
@ -69,8 +69,14 @@
|
|||
[ "exec", "/etc/rc.button/%BUTTON%" ]
|
||||
],
|
||||
[ "if",
|
||||
[ "or",
|
||||
[ "eq", "SUBSYSTEM",
|
||||
[ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "tty", "button" ]
|
||||
[ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "button" ],
|
||||
],
|
||||
[ "and",
|
||||
[ "eq", "SUBSYSTEM", "tty" ],
|
||||
[ "regex", "DEVNAME", "^ttyUSB" ],
|
||||
]
|
||||
],
|
||||
[ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ]
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue