mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-13 13:17:43 +03:00
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:
parent
e8c335b60a
commit
aa0b70530c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user