From 8326da8cf70a40bfd9c921fce2dcf410205e3832 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 10 Nov 2013 15:06:28 +0000 Subject: procd: reduce the number of unnecessary calls to /sbin/hotplug-call for tty devices Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38705 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/system/procd/files/hotplug.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'package/system') 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%" ] ], -- cgit v1.2.3