From 4a9dfa44534deee2053a582dec1f63f06cca7f2d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 22 Apr 2007 18:25:44 +0000 Subject: [PATCH] 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 1c5b640e1a..9953ca31a3 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -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") */