summaryrefslogtreecommitdiffstats
path: root/etc/inc/cmd_chain.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-19 03:19:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-19 03:19:22 +0000
commit5025a56c9f3506a112155129ae787958762683f8 (patch)
tree1ad9d3a2ea409edde54f4c3bb8ded8565e2ca2eb /etc/inc/cmd_chain.inc
parente7d967d8da9f1b418b9cc7e0bbe9f11e1285b787 (diff)
downloadpfsense-5025a56c9f3506a112155129ae787958762683f8.zip
pfsense-5025a56c9f3506a112155129ae787958762683f8.tar.gz
* Add run_plugins() function
* Use run_plugins() function in filter.inc * Add plugin hook for parse_config and write_config
Diffstat (limited to 'etc/inc/cmd_chain.inc')
-rw-r--r--etc/inc/cmd_chain.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/cmd_chain.inc b/etc/inc/cmd_chain.inc
index 8186065..13bd913 100644
--- a/etc/inc/cmd_chain.inc
+++ b/etc/inc/cmd_chain.inc
@@ -120,8 +120,11 @@ Class CmdCHAIN {
$cmdchain = new CmdCHAIN();
$cmdchain->add("grab freebsd version", "uname -a", false);
$cmdchain->setdebug(); // optional for verbose logging
+$cmdchain->nohaltonerror(); // tells cmdchain to keep processing commands if any of them fail
$cmdchain->execute();
+$cmdchain->clear(); // clears the previous added entries
+
*/
?> \ No newline at end of file
OpenPOWER on IntegriCloud