Blame 0017-network-dhclient-script.sh-fixup-lease-time.patch
|
Harald Hoyer |
0840a3 |
From 8d09f493a634f0c6c44e99fb22618b75cbb41f0f Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
0840a3 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
0840a3 |
Date: Thu, 2 Jul 2015 19:48:25 +0200
|
|
Harald Hoyer |
0840a3 |
Subject: [PATCH] network/dhclient-script.sh: fixup lease time
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
---
|
|
Harald Hoyer |
0840a3 |
modules.d/40network/dhclient-script.sh | 5 ++++-
|
|
Harald Hoyer |
0840a3 |
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
diff --git a/modules.d/40network/dhclient-script.sh b/modules.d/40network/dhclient-script.sh
|
|
Harald Hoyer |
0840a3 |
index a8b5b89..2550caf 100755
|
|
Harald Hoyer |
0840a3 |
--- a/modules.d/40network/dhclient-script.sh
|
|
Harald Hoyer |
0840a3 |
+++ b/modules.d/40network/dhclient-script.sh
|
|
Harald Hoyer |
0840a3 |
@@ -21,7 +21,10 @@ setup_interface() {
|
|
Harald Hoyer |
0840a3 |
search=$(printf -- "$new_domain_search")
|
|
Harald Hoyer |
0840a3 |
namesrv=$new_domain_name_servers
|
|
Harald Hoyer |
0840a3 |
hostname=$new_host_name
|
|
Harald Hoyer |
0840a3 |
- lease_time=$new_dhcp_lease_time
|
|
Harald Hoyer |
0840a3 |
+ [ -n "$new_dhcp_lease_time" ] && lease_time=$new_dhcp_lease_time
|
|
Harald Hoyer |
0840a3 |
+ [ -n "$new_max_life" ] && lease_time=$new_max_life
|
|
Harald Hoyer |
0840a3 |
+ preferred_lft=$lease_time
|
|
Harald Hoyer |
0840a3 |
+ [ -n "$new_preferred_life" ] && preferred_lft=$new_preferred_life
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
[ -f /tmp/net.$netif.override ] && . /tmp/net.$netif.override
|
|
Harald Hoyer |
0840a3 |
|