From: Michael Tremer Date: Fri, 18 Aug 2017 10:01:22 +0000 (+0000) Subject: dhclient-script: IP addresses could change on REBIND X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=548f3e062910b1718667a04b45c855061e99f5f6;p=people%2Fjschlag%2Fnetwork.git dhclient-script: IP addresses could change on REBIND 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 --- diff --git a/src/dhclient-script b/src/dhclient-script index f099c47..c2e0678 100644 --- a/src/dhclient-script +++ b/src/dhclient-script @@ -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}" ] || \