From d8f935c408579c41cd085f082980b686ae8ba6d4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 19 Apr 2007 04:39:52 +0000 Subject: Disable scrub on package install. File a alert. Re-enable scrub on package install. File a alert. --- packages/frickin/frickin.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'packages') 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(); } -- cgit v1.2.3