summaryrefslogtreecommitdiff
path: root/udev_device.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-03-15 00:10:22 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-03-15 00:10:22 +0100
commit4a7e6bcef059af60baab92a3c0fbe01ed44465d5 (patch)
tree9245275f39f80331909d5ae8e0173453f5e2f03d /udev_device.c
parent9c6ad9fbbac82e517f5e748ddbe166f96f120afe (diff)
update internal variables if we see $DEVPATH during IMPORT
Diffstat (limited to 'udev_device.c')
-rw-r--r--udev_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/udev_device.c b/udev_device.c
index 1eebd61cc5..91fa655480 100644
--- a/udev_device.c
+++ b/udev_device.c
@@ -208,6 +208,10 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
info("device event will be ignored");
goto exit;
}
+ if (udev->name[0] == '\0') {
+ info("device renaming supressed");
+ goto exit;
+ }
/* look if we want to change the name of the netif */
if (strcmp(udev->name, udev->dev->kernel) != 0) {