mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-31 07:51:08 +03:00
allow "online" events to create/update symlinks
This commit is contained in:
parent
fa33d857e2
commit
3c9e5740eb
@ -114,7 +114,8 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
|
||||
int retval = 0;
|
||||
|
||||
/* add device node */
|
||||
if (major(udev->devt) != 0 && strcmp(udev->action, "add") == 0) {
|
||||
if (major(udev->devt) != 0 &&
|
||||
(strcmp(udev->action, "add") == 0 || strcmp(udev->action, "online") == 0)) {
|
||||
struct udevice *udev_old;
|
||||
|
||||
dbg("device node add '%s'", udev->dev->devpath);
|
||||
|
Loading…
Reference in New Issue
Block a user