diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-22 18:25:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-22 18:25:50 +0000 |
commit | 8f8f9721bcca0c96443ec6d6c2342bee0438389c (patch) | |
tree | 0a0c5bd3b05850fb6640026996c52e18af625c43 /etc/rc.newwanip | |
parent | d8f4eede64288067e71d48a695e6734f4c7d9f9c (diff) | |
download | pfsense-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-x | etc/rc.newwanip | 6 |
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") */ |