Do not call rc.newwanip on bootup. Remove bogus return 0;

This commit is contained in:
Scott Ullrich 2010-12-10 13:54:54 -05:00
parent d12654441c
commit 9e18b39240

View File

@ -41,6 +41,10 @@ require_once("ipsec.inc");
require_once("vpn.inc");
require_once("openvpn.inc");
// Do not process while booting
if($g['booting'])
exit;
/* Interface IP address has changed */
$argument = str_replace("\n", "", $argv[1]);
@ -115,5 +119,4 @@ mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh");
mwexec_bg("/etc/rc.start_packages");
log_error("{$g['product_name']} package system has detected an ip change $oldip -> $curwanip ... Restarting packages.");
return 0;
?>
?>