summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-22 18:25:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-22 18:25:50 +0000
commit8f8f9721bcca0c96443ec6d6c2342bee0438389c (patch)
tree0a0c5bd3b05850fb6640026996c52e18af625c43 /etc/rc.newwanip
parentd8f4eede64288067e71d48a695e6734f4c7d9f9c (diff)
downloadpfsense-8f8f9721bcca0c96443ec6d6c2342bee0438389c.zip
pfsense-8f8f9721bcca0c96443ec6d6c2342bee0438389c.tar.gz
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.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip6
1 files changed, 4 insertions, 2 deletions
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") */
OpenPOWER on IntegriCloud