summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-09 21:29:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-09 21:29:11 +0000
commitf00f639780fed557b39ec1ff522e0f6c032d364e (patch)
tree26820fdca345d007f179a5c319d4b589f83d063b /etc
parente415bfab3c1dcf3a8dd50733f797f73fc8601a66 (diff)
downloadpfsense-f00f639780fed557b39ec1ff522e0f6c032d364e.zip
pfsense-f00f639780fed557b39ec1ff522e0f6c032d364e.tar.gz
Only restart packages if the IP address changes
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.newwanip3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index f5854a7..29df929 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") */
OpenPOWER on IntegriCloud