3cd12006bb
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From 6a3a3047ad47570ccdb9b758c8417a66447be697 Mon Sep 17 00:00:00 2001
|
|
From: Scott Little <scott.little@windriver.com>
|
|
Date: Thu, 5 Oct 2017 12:31:18 -0400
|
|
Subject: [PATCH 2/9] WRS: Patch5-relocate-dhclient-leases-to-var-run.patch
|
|
|
|
---
|
|
sysconfig/network-scripts/network-functions | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
|
|
index 1867c38..080101b 100644
|
|
--- a/sysconfig/network-scripts/network-functions
|
|
+++ b/sysconfig/network-scripts/network-functions
|
|
@@ -65,11 +65,11 @@ get_uuid_by_config ()
|
|
generate_lease_file_name ()
|
|
{
|
|
local ver=$1
|
|
- LEASEFILE="/var/lib/dhclient/dhclient$ver-${DEVICE}.leases"
|
|
+ LEASEFILE="/var/run/dhclient$ver-${DEVICE}.leases"
|
|
if [ -f $LEASEFILE ]; then
|
|
return
|
|
fi
|
|
- LEASEFILE="/var/lib/dhclient/dhclient$ver-${UUID}-${DEVICE}.lease"
|
|
+ LEASEFILE="/var/run/dhclient$ver-${UUID}-${DEVICE}.lease"
|
|
}
|
|
|
|
generate_config_file_name ()
|
|
--
|
|
1.9.1
|
|
|