diff options
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") */ |