aboutsummaryrefslogtreecommitdiffstats
path: root/packages/frickin
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frickin')
-rw-r--r--packages/frickin/frickin.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/frickin/frickin.inc b/packages/frickin/frickin.inc
index 71c9ead4..b0bd8964 100644
--- a/packages/frickin/frickin.inc
+++ b/packages/frickin/frickin.inc
@@ -30,6 +30,7 @@
*/
function frickin_custom_php_install_command() {
+ global $config;
$fout = fopen("/usr/local/etc/rc.d/frickin.sh", "w");
fwrite($fout, "#!/bin/sh\n# This package was automatically generated\n# by the pfSense package system.\n\n");
fwrite($fout, "# PACKAGE: Frickin Proxy\n");
@@ -74,13 +75,25 @@ EOD;
mwexec("chmod a+rx /usr/local/etc/rc.d/frickin.sh");
mwexec("/usr/local/etc/rc.d/frickin.sh");
+ file_notice("System -> Advanced -> Scrub", "pfSenses scrub option has been disabled.", "Scrub");
+ $config['system']['scrubnodf'] = "enabled";
+ write_config();
+
filter_configure();
}
function frickin_custom_php_deinstall_command() {
+ global $config;
+
+ unset($config['system']['scrubnodf']);
+ file_notice("System -> Advanced -> Scrub", "pfSenses scrub option has been enabled.", "Scrub");
+ write_config();
+
unlink_if_exists("/usr/local/etc/rc.d/frickin.sh");
unlink_if_exists("/usr/local/bin/frickin");
+
mwexec("killall frickin");
+
filter_configure();
}