.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=578
This commit is contained in:
parent
9e958ba41c
commit
5f5efb7f93
@ -9,20 +9,13 @@ Date: Tue, 4 Mar 2014 10:29:21 +0000
|
|||||||
Port the patch of Robert to systemd v210 and test it out.
|
Port the patch of Robert to systemd v210 and test it out.
|
||||||
|
|
||||||
---
|
---
|
||||||
udev-event.c | 43 +++++++++++++++++++++++++++++++++++++++----
|
udev-event.c | 42 ++++++++++++++++++++++++++++++++++++++----
|
||||||
1 file changed, 39 insertions(+), 4 deletions(-)
|
1 file changed, 38 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
|
||||||
--- systemd-210/src/udev/udev-event.c
|
--- systemd-210/src/udev/udev-event.c
|
||||||
+++ systemd-210/src/udev/udev-event.c 2014-03-27 13:19:06.727748307 +0000
|
+++ systemd-210/src/udev/udev-event.c 2014-03-27 13:19:06.727748307 +0000
|
||||||
@@ -30,6 +30,7 @@
|
@@ -750,8 +750,9 @@ static int rename_netif(struct udev_even
|
||||||
#include <sys/epoll.h>
|
|
||||||
#include <sys/wait.h>
|
|
||||||
#include <sys/signalfd.h>
|
|
||||||
+#include <sys/inotify.h>
|
|
||||||
|
|
||||||
#include "udev.h"
|
|
||||||
#include "rtnl-util.h"
|
|
||||||
@@ -750,8 +751,9 @@ static int rename_netif(struct udev_even
|
|
||||||
struct udev_device *dev = event->dev;
|
struct udev_device *dev = event->dev;
|
||||||
_cleanup_rtnl_unref_ sd_rtnl *rtnl = NULL;
|
_cleanup_rtnl_unref_ sd_rtnl *rtnl = NULL;
|
||||||
char name[IFNAMSIZ];
|
char name[IFNAMSIZ];
|
||||||
@ -33,7 +26,7 @@ Port the patch of Robert to systemd v210 and test it out.
|
|||||||
|
|
||||||
oldname = udev_device_get_sysname(dev);
|
oldname = udev_device_get_sysname(dev);
|
||||||
|
|
||||||
@@ -765,12 +767,45 @@ static int rename_netif(struct udev_even
|
@@ -765,12 +766,45 @@ static int rename_netif(struct udev_even
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
r = rtnl_set_link_name(rtnl, udev_device_get_ifindex(dev), name);
|
r = rtnl_set_link_name(rtnl, udev_device_get_ifindex(dev), name);
|
||||||
|
Loading…
Reference in New Issue
Block a user