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

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38862
master
Felix Fietkau 11 years ago
parent 69598dd020
commit c84a43cf40
  1. 17
      package/system/procd/files/hotplug.json

@ -69,15 +69,18 @@
[ "exec", "/etc/rc.button/%BUTTON%" ] [ "exec", "/etc/rc.button/%BUTTON%" ]
], ],
[ "if", [ "if",
[ "or", [ "eq", "SUBSYSTEM",
[ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "tty", "button" ]
],
[ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ]
],
[ "if",
[ "and",
[ "eq", "SUBSYSTEM", [ "eq", "SUBSYSTEM",
[ "net", "input", "usb", "ieee1394", "block", "atm", "zaptel", "button" ], [ "tty", "usb-serial" ]
], ],
[ "and", [ "regex", "DEVNAME", "^ttyUSB" ],
[ "eq", "SUBSYSTEM", "tty" ],
[ "regex", "DEVNAME", "^ttyUSB" ],
]
], ],
[ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ] [ "exec", "/sbin/hotplug-call", "tty" ]
], ],
] ]

Loading…
Cancel
Save