diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-19 04:39:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-19 04:39:52 +0000 |
commit | d8f935c408579c41cd085f082980b686ae8ba6d4 (patch) | |
tree | 088f1a542f560f75e0b59ed2fc6fbdcbc1f9f938 /packages/frickin | |
parent | 584a001cfec77f210984b28666bac62ebd7365c9 (diff) | |
download | pfsense-packages-d8f935c408579c41cd085f082980b686ae8ba6d4.tar.gz pfsense-packages-d8f935c408579c41cd085f082980b686ae8ba6d4.tar.bz2 pfsense-packages-d8f935c408579c41cd085f082980b686ae8ba6d4.zip |
Disable scrub on package install. File a alert.
Re-enable scrub on package install. File a alert.
Diffstat (limited to 'packages/frickin')
-rw-r--r-- | packages/frickin/frickin.inc | 13 |
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(); } |