forked from pool/systemd
.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=578
This commit is contained in:
parent
49e36e2499
commit
32f45e293f
@ -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.
|
||||
|
||||
---
|
||||
udev-event.c | 43 +++++++++++++++++++++++++++++++++++++++----
|
||||
1 file changed, 39 insertions(+), 4 deletions(-)
|
||||
udev-event.c | 42 ++++++++++++++++++++++++++++++++++++++----
|
||||
1 file changed, 38 insertions(+), 4 deletions(-)
|
||||
|
||||
|
||||
--- systemd-210/src/udev/udev-event.c
|
||||
+++ systemd-210/src/udev/udev-event.c 2014-03-27 13:19:06.727748307 +0000
|
||||
@@ -30,6 +30,7 @@
|
||||
#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
|
||||
@@ -750,8 +750,9 @@ static int rename_netif(struct udev_even
|
||||
struct udev_device *dev = event->dev;
|
||||
_cleanup_rtnl_unref_ sd_rtnl *rtnl = NULL;
|
||||
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);
|
||||
|
||||
@@ -765,12 +767,45 @@ static int rename_netif(struct udev_even
|
||||
@@ -765,12 +766,45 @@ static int rename_netif(struct udev_even
|
||||
return r;
|
||||
|
||||
r = rtnl_set_link_name(rtnl, udev_device_get_ifindex(dev), name);
|
||||
|
Loading…
Reference in New Issue
Block a user