|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From ad6e5b348fa88f44d6cbfe7aabda7612a1d0463f Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Tom Gundersen <teg@jklm.no>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Mon, 8 Sep 2014 14:00:58 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] udev: net_setup_link - export the .link filename applied to
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
the link
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/udev/udev-builtin-net_setup_link.c | 2 ++
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 2 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/udev/udev-builtin-net_setup_link.c b/src/udev/udev-builtin-net_setup_link.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 6207269ab9..14351de6a6 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/udev/udev-builtin-net_setup_link.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/udev/udev-builtin-net_setup_link.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -57,6 +57,8 @@ static int builtin_net_setup_link(struct udev_device *dev, int argc, char **argv
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
return EXIT_FAILURE;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ udev_builtin_add_property(dev, test, "ID_NET_LINK_FILE", link->filename);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
if (name)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
udev_builtin_add_property(dev, test, "ID_NET_NAME", name);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|