diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 1c5b640e1a..9953ca31a3 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -118,8 +118,9 @@ 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") */