system/corennnnn
Revision | 86e780c5c07343bfc57285613a9fc2d9a7353f70 (tree) |
---|---|
Zeit | 2016-08-26 02:38:34 |
Autor | Roman Petrovski <roman.petrovski@gmai...> |
Commiter | Chih-Wei Huang |
init: support usbmisc devices
The patch allows to create usbmisc device nodes like /dev/cdc-wdm0.
@@ -681,7 +681,7 @@ static void handle_generic_device_event(struct uevent *uevent) | ||
681 | 681 | return; |
682 | 682 | mkdir_recursive_for_devpath(devpath); |
683 | 683 | } else if (!strncmp(uevent->subsystem, "usb", 3)) { |
684 | - if (!strcmp(uevent->subsystem, "usb")) { | |
684 | + if (!strcmp(uevent->subsystem, "usb") || !strcmp(uevent->subsystem, "usbmisc")) { | |
685 | 685 | if (uevent->device_name) { |
686 | 686 | if (!assemble_devpath(devpath, "/dev", uevent->device_name)) |
687 | 687 | return; |