diff options
Diffstat (limited to 'scripts/vyatta-static-dhcp.pl')
-rwxr-xr-x | scripts/vyatta-static-dhcp.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-static-dhcp.pl b/scripts/vyatta-static-dhcp.pl index 2b9ed9c4..179ecb5e 100755 --- a/scripts/vyatta-static-dhcp.pl +++ b/scripts/vyatta-static-dhcp.pl @@ -14,6 +14,10 @@ GetOptions("interface=s" => \$iface, "reason=s" => \$reason); # check if an update is needed +if (($reason eq "BOUND") || ($reason eq "REBOOT")) { + $oip = ""; + $orouters = ""; +} exit(0) if (($iface ne $dhcp) || (($oip eq $nip) && ($orouters eq $nrouters))); logger("DHCP address on $iface updated to $nip,$nrouters from $oip,$orouters: Updating static route $route in table $table."); my $tab; |