aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ifstated.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ifstated.xml')
-rw-r--r--packages/ifstated.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/ifstated.xml b/packages/ifstated.xml
index 1e57ce81..1c1dfecd 100644
--- a/packages/ifstated.xml
+++ b/packages/ifstated.xml
@@ -71,6 +71,7 @@
global $config;
$fout = fopen("/usr/local/etc/ifstated.conf","w");
if($config['installedpackages']['ifstated']['config'] != "") {
+ fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n");
fwrite($fout, "init-state " . $_POST['initstate'] . "\n\n");
fwrite($fout, "carp_up = \"((carp0 link up) and (carp1 link up))\"\ncarp_down = \"((! carp0 link up) and (! carp1 link up))\"\ncarp_sync= \"((carp0 link up and carp1 link up) or ((!carp0 link up) and (!carp1 link up)))\"\n\n");
fwrite($fout, "net = '( \"ping -q -c 1 -t 1 " . $_POST['exttestip'] . " > /dev/null\" every 10 and \"ping -q -c 1 -t 1 " . $_POST['inttestip'] . " > /dev/null\" every 10)'\n\n");