use "change" instead of "online" events
The kernel driver may send "change" to signify a device state change and udev can possibly recreate symlinks.
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
|
||||
|
||||
/* add device node */
|
||||
if (major(udev->devt) != 0 &&
|
||||
(strcmp(udev->action, "add") == 0 || strcmp(udev->action, "online") == 0)) {
|
||||
(strcmp(udev->action, "add") == 0 || strcmp(udev->action, "change") == 0)) {
|
||||
struct udevice *udev_old;
|
||||
|
||||
dbg("device node add '%s'", udev->dev->devpath);
|
||||
|
||||
Reference in New Issue
Block a user