From f00f639780fed557b39ec1ff522e0f6c032d364e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 9 Feb 2007 21:29:11 +0000 Subject: [PATCH] Only restart packages if the IP address changes --- etc/rc.newwanip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/rc.newwanip b/etc/rc.newwanip index f5854a7164..29df929895 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -115,7 +115,8 @@ touch("/tmp/filter_dirty"); enable_rrd_graphing(); /* restart packages */ -exec("/etc/rc.start_packages"); +if($old_ip <> $curwanip) + exec("/etc/rc.start_packages"); /* reload slbd */ /* if ($config['load_balancer']['lbpool']['type'] == "gateway") */