diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-09 21:29:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-09 21:29:11 +0000 |
commit | f00f639780fed557b39ec1ff522e0f6c032d364e (patch) | |
tree | 26820fdca345d007f179a5c319d4b589f83d063b | |
parent | e415bfab3c1dcf3a8dd50733f797f73fc8601a66 (diff) | |
download | pfsense-f00f639780fed557b39ec1ff522e0f6c032d364e.zip pfsense-f00f639780fed557b39ec1ff522e0f6c032d364e.tar.gz |
Only restart packages if the IP address changes
-rwxr-xr-x | etc/rc.newwanip | 3 |
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") */ |