summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-03-05 17:44:12 +0100
committerTom Gundersen <teg@jklm.no>2015-03-09 22:50:44 +0100
commit3738cc858d6d1312f66a31d2f7652328bb317876 (patch)
tree89badcaa34dac623659b5b7b811a22057087db57 /src/udev
parentbd57b6de74c6ff77f0220bf08d43a7e41f4316e9 (diff)
udev/libudev: event - move {OLD_,}INTERFACE handling from udevd to libudev
This should be internal to the library as it is only about reflecting the sysfs state in the udev_device.
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-event.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index 1c5d5e9a49..e5a5175df9 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -849,20 +849,12 @@ void udev_event_execute_rules(struct udev_event *event,
log_warning_errno(r, "could not rename interface '%d' from '%s' to '%s': %m", udev_device_get_ifindex(dev),
udev_device_get_sysname(dev), event->name);
else {
- const char *interface_old;
-
- /* remember old name */
- interface_old = udev_device_get_sysname(dev);
-
r = udev_device_rename(dev, event->name);
if (r < 0)
log_warning_errno(r, "renamed interface '%d' from '%s' to '%s', but could not update udev_device: %m",
udev_device_get_ifindex(dev), udev_device_get_sysname(dev), event->name);
- else {
- udev_device_add_property(dev, "INTERFACE_OLD", interface_old);
- udev_device_add_property(dev, "INTERFACE", event->name);
+ else
log_debug("changed devpath to '%s'", udev_device_get_devpath(dev));
- }
}
}