From 8f8f9721bcca0c96443ec6d6c2342bee0438389c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 22 Apr 2007 18:25:50 +0000 Subject: 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. --- etc/rc.newwanip | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'etc/rc.newwanip') diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 1c5b640..e7f6191 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -118,8 +118,10 @@ 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") */ -- cgit v1.1