Browse Source

procd: emit tty events for ttyUSB* even when they come from the usb-serial subsystem

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 38862
Felix Fietkau 12 years ago
parent
commit
c84a43cf40
1 changed files with 10 additions and 7 deletions
  1. 10 7
      package/system/procd/files/hotplug.json

+ 10 - 7
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" ]
 	],
 ]