summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-11 03:54:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-11 03:54:07 +0000
commit3eb4f771863be8119d29123df5ff31119ea68153 (patch)
tree91c8dd0eac15cd94f9f2866d2565d5e3a49eb521 /etc
parentc1ca174150b0ac5b4804a50fc4d8b20835e81ec4 (diff)
downloadpfsense-3eb4f771863be8119d29123df5ff31119ea68153.zip
pfsense-3eb4f771863be8119d29123df5ff31119ea68153.tar.gz
Add system->afterfilterchangeshellcmd xml tag which will be exec'd after
each filter_configure() call. This is useful for fixing stuff like: http://www.m0n0.ch/wall/list/?action=show_msg&actionargs%5B%5D=172&actionargs%5B%5D=46
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index b804771..b1fad42 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -169,6 +169,15 @@ function filter_configure() {
}
}
}
+
+ /* we need a way to let a user run a shell cmd after each
+ filter_configure() call. run this xml command after
+ each change.
+ */
+ if($config['system']['afterfilterchangeshellcmd'] <> "") {
+ mwexec($config['system']['afterfilterchangeshellcmd']);
+ }
+
return 0;
}
OpenPOWER on IntegriCloud