|
|
712866 |
From 52845b168d0909d72b4c2f0b6511ed18877a31e8 Mon Sep 17 00:00:00 2001
|
|
|
712866 |
From: Harald Hoyer <harald@redhat.com>
|
|
|
712866 |
Date: Tue, 8 Sep 2015 11:44:13 +0200
|
|
|
712866 |
Subject: [PATCH] network/dhclient-script.sh: fix RENEW
|
|
|
712866 |
|
|
|
712866 |
Remove check, if interface is already up. It is for RENEW.
|
|
|
712866 |
|
|
|
712866 |
new_prefix is apparently new_subnet_mask
|
|
|
712866 |
---
|
|
|
712866 |
modules.d/40network/dhclient-script.sh | 5 +----
|
|
|
712866 |
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
712866 |
|
|
|
712866 |
diff --git a/modules.d/40network/dhclient-script.sh b/modules.d/40network/dhclient-script.sh
|
|
|
5c6c2a |
index 761b0cd2..6d4b9dd1 100755
|
|
|
712866 |
--- a/modules.d/40network/dhclient-script.sh
|
|
|
712866 |
+++ b/modules.d/40network/dhclient-script.sh
|
|
|
712866 |
@@ -10,9 +10,6 @@ type ip_to_var >/dev/null 2>&1 || . /lib/net-lib.sh
|
|
|
712866 |
# We already need a set netif here
|
|
|
712866 |
netif=$interface
|
|
|
712866 |
|
|
|
712866 |
-# Huh? Interface configured?
|
|
|
712866 |
-[ -f "/tmp/net.$netif.up" ] && exit 0
|
|
|
712866 |
-
|
|
|
712866 |
setup_interface() {
|
|
|
712866 |
ip=$new_ip_address
|
|
|
712866 |
mtu=$new_interface_mtu
|
|
|
712866 |
@@ -151,7 +148,7 @@ case $reason in
|
|
|
712866 |
[ -n "$new_max_life" ] && lease_time=$new_max_life
|
|
|
712866 |
preferred_lft=$lease_time
|
|
|
712866 |
[ -n "$new_preferred_life" ] && preferred_lft=$new_preferred_life
|
|
|
712866 |
- ip -4 addr change ${new_ip_address}/${new_prefix} broadcast ${new_broadcast_address} dev ${interface} \
|
|
|
712866 |
+ ip -4 addr change ${new_ip_address}/${new_subnet_mask} broadcast ${new_broadcast_address} dev ${interface} \
|
|
|
712866 |
${lease_time:+valid_lft $lease_time} ${preferred_lft:+preferred_lft ${preferred_lft}} \
|
|
|
712866 |
>/dev/null 2>&1
|
|
|
712866 |
;;
|