diff options
Diffstat (limited to 'udev_device.c')
-rw-r--r-- | udev_device.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/udev_device.c b/udev_device.c index 23ba313db3..2b7ffe0bf4 100644 --- a/udev_device.c +++ b/udev_device.c @@ -168,6 +168,10 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev) { int retval = 0; + if (udev->devpath_old != NULL) + if (udev_db_rename(udev->devpath_old, udev->dev->devpath) == 0) + info("moved database from '%s' to '%s'", udev->devpath_old, udev->dev->devpath); + /* add device node */ if (major(udev->devt) != 0 && (strcmp(udev->action, "add") == 0 || strcmp(udev->action, "change") == 0)) { |