[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] ifupdown: specify unique lease files for each interface
From: Christoph Gysin <christoph.gysin () gmail ! com>
Date: 2015-12-01 18:23:45
Message-ID: 1448994225-10259-1-git-send-email-christoph.gysin () gmail ! com
[Download RAW message or body]
If multiple interfaces are running dhclient, the lease file can get corrupted.
This specifies unique lease files per interface.
---
networking/ifupdown.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 766dfab..6c4732e 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -527,7 +527,10 @@ static const struct dhcp_client_t ext_dhcp_clients[] = {
"dhcpcd -k %iface%",
},
{ "dhclient",
- "dhclient -pf /var/run/dhclient.%iface%.pid %iface%",
+ "dhclient"
+ " -pf /var/run/dhclient.%iface%.pid"
+ " -lf /var/lib/dhcp/dhclient.%iface%.leases"
+ " %iface%",
"kill -9 `cat /var/run/dhclient.%iface%.pid` 2>/dev/null",
},
{ "pump",
--
2.6.2
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic