From: nbd Date: Tue, 19 Nov 2013 00:03:42 +0000 (+0000) Subject: procd: emit tty events for ttyUSB* even when they come from the usb-serial subsystem X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=e3a977a34885875c2c5741ac18cf970280753c4c;p=openwrt.git procd: emit tty events for ttyUSB* even when they come from the usb-serial subsystem Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38862 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json index bcd169034b..b3121789e0 100644 --- a/package/system/procd/files/hotplug.json +++ b/package/system/procd/files/hotplug.json @@ -69,15 +69,18 @@ [ "exec", "/etc/rc.button/%BUTTON%" ] ], [ "if", - [ "or", + [ "eq", "SUBSYSTEM", + [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "tty", "button" ] + ], + [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ] + ], + [ "if", + [ "and", [ "eq", "SUBSYSTEM", - [ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "button" ], + [ "tty", "usb-serial" ] ], - [ "and", - [ "eq", "SUBSYSTEM", "tty" ], - [ "regex", "DEVNAME", "^ttyUSB" ], - ] + [ "regex", "DEVNAME", "^ttyUSB" ], ], - [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ] + [ "exec", "/sbin/hotplug-call", "tty" ] ], ]