1
1
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:
Kay Sievers 2006-07-21 22:31:58 +02:00
parent e8c335b60a
commit aa0b70530c

View File

@ -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);