When dhclient renews the ip address and the ip has not changed then old_ip_address will not be set. Ignore this and do not reload all packages when the ip has not changed.

This commit is contained in:
Scott Ullrich 2007-04-22 18:25:44 +00:00
parent cffd2ea49b
commit 4a9dfa4453

View File

@ -118,8 +118,9 @@ touch("/tmp/filter_dirty");
enable_rrd_graphing();
/* restart packages */
if($old_ip <> $curwanip)
exec("/etc/rc.start_packages");
if($old_ip <> "")
if($old_ip <> $curwanip)
exec("/etc/rc.start_packages");
/* reload slbd */
/* if ($config['load_balancer']['lbpool']['type'] == "gateway") */