]> git.ipfire.org Git - people/jschlag/network.git/commitdiff
dhclient-script: IP addresses could change on REBIND
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Aug 2017 10:01:22 +0000 (10:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Aug 2017 10:01:22 +0000 (10:01 +0000)
When the client binds to a new DHCP server, the IP address
could change and therefore we need to check if that has
happened and update everything accordingly.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dhclient-script

index f099c477908ceec3395018e839c7a504458106c8..c2e0678b582836cb3e8ff1eef0229835d6fabd17 100644 (file)
@@ -202,7 +202,7 @@ case "${reason}" in
                fi
 
                case "${reason}" in
-                       BOUND|REBOOT)
+                       BOUND|REBIND|REBOOT)
                                if [ ! "${old_ip_address}" = "${new_ip_address}" ] || \
                                        [ ! "${old_subnet_mask}" = "${new_subnet_mask}" ] || \
                                        [ ! "${old_network_number}" = "${new_network_number}" ] || \