summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-10 13:54:54 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-10 13:55:04 -0500
commit9e18b39240bc7bfccffd1943ac00aaa8dfbf736c (patch)
tree4c1711f9a5347c551582e4322c2c47970912cbf9 /etc/rc.newwanip
parentd12654441c93299c0c6cd3f163c9976390e082e8 (diff)
downloadpfsense-9e18b39240bc7bfccffd1943ac00aaa8dfbf736c.zip
pfsense-9e18b39240bc7bfccffd1943ac00aaa8dfbf736c.tar.gz
Do not call rc.newwanip on bootup. Remove bogus return 0;
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index e2213fa..58da7fa 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -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;
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud