summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-09 05:43:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-09 05:43:27 +0000
commit9b5fdb5b115de511a4d90bff3665bb9184b2afb5 (patch)
tree69e69c734e0f9ad7555c48d6fcc3bf270a377d77
parent3c13912772af804c334cb3e10480d457e16a1eac (diff)
downloadpfsense-9b5fdb5b115de511a4d90bff3665bb9184b2afb5.zip
pfsense-9b5fdb5b115de511a4d90bff3665bb9184b2afb5.tar.gz
Sync the time on ip change and alert the logs
-rwxr-xr-xetc/rc.newwanip3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index c63f7ac..4fecbb0 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -120,6 +120,7 @@ enable_rrd_graphing();
/* restart packages */
if($old_ip <> "")
if($old_ip <> $curwanip) {
+ exec("/etc/rc.start_packages");
exec("/etc/rc.start_packages");
log_error("pfSense package system has detected an ip change $old_ip -> $curwanip ... Restarting packages.");
}
@@ -132,4 +133,4 @@ log_error("Configuring slbd");
return 0;
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud