summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-06-29 22:25:48 -0500
committerChris Buechler <cmb@pfsense.org>2016-06-29 22:26:34 -0500
commita5297e819cb15a1e8e47d8b4cef848d509e86681 (patch)
tree31c2299cd2cd53c75760d2e5ab5279fd5f0ded18
parent1799a969c7bb277f42aa04bf03cd41b5ebc86ca7 (diff)
downloadpfsense-a5297e819cb15a1e8e47d8b4cef848d509e86681.zip
pfsense-a5297e819cb15a1e8e47d8b4cef848d509e86681.tar.gz
Add playback files for disabling and enabling CARP maintenance mode. Ticket #6560
-rw-r--r--src/etc/phpshellsessions/disablecarpmaint5
-rw-r--r--src/etc/phpshellsessions/enablecarpmaint5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/etc/phpshellsessions/disablecarpmaint b/src/etc/phpshellsessions/disablecarpmaint
new file mode 100644
index 0000000..06dee48
--- /dev/null
+++ b/src/etc/phpshellsessions/disablecarpmaint
@@ -0,0 +1,5 @@
+! echo "Disabling CARP maintenance mode..."
+require_once("interfaces.inc");
+
+interfaces_carp_set_maintenancemode(false);
+
diff --git a/src/etc/phpshellsessions/enablecarpmaint b/src/etc/phpshellsessions/enablecarpmaint
new file mode 100644
index 0000000..1a63dd2
--- /dev/null
+++ b/src/etc/phpshellsessions/enablecarpmaint
@@ -0,0 +1,5 @@
+! echo "Enabling CARP maintenance mode..."
+require_once("interfaces.inc");
+
+interfaces_carp_set_maintenancemode(true);
+
OpenPOWER on IntegriCloud