summaryrefslogtreecommitdiff
path: root/udev_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_device.c')
-rw-r--r--udev_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udev_device.c b/udev_device.c
index 14c8d39cf7..84d0ab2204 100644
--- a/udev_device.c
+++ b/udev_device.c
@@ -149,6 +149,9 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
goto exit;
info("renamed netif to '%s'", udev->name);
+ /* export old name */
+ setenv("INTERFACE_OLD", udev->dev->kernel_name, 1);
+
/* now fake the devpath, because the kernel name changed silently */
pos = strrchr(udev->dev->devpath, '/');
if (pos != NULL) {