system/corennnnn
修訂 | 2c7e2af7e58722456a71aa152a5dfe261a19de34 (tree) |
---|---|
時間 | 2016-11-09 00:56:25 |
作者 | 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; |