diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-04-06 20:40:58 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-04-06 20:40:58 +0200 |
commit | 3e5d5cb773f41d70b9e22bef36839101e0c51fd7 (patch) | |
tree | aa48bc2dbd591c362946cc8cb7bccaff517f22ed /udev_device.c | |
parent | 750d10daacfc0285f83204161811f5e2ea531712 (diff) |
export INTERFACE_OLD if we renamed a netif
Diffstat (limited to 'udev_device.c')
-rw-r--r-- | udev_device.c | 3 |
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) { |