aboutsummaryrefslogtreecommitdiffstats
path: root/packages/frickin.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frickin.xml')
-rw-r--r--packages/frickin.xml30
1 files changed, 16 insertions, 14 deletions
diff --git a/packages/frickin.xml b/packages/frickin.xml
index 8c04e6dc..12c5e7be 100644
--- a/packages/frickin.xml
+++ b/packages/frickin.xml
@@ -33,18 +33,18 @@
</fields>
<custom_php_global_functions>
function sync_package_frickin() {
- global $config;
- $frickin_config = $config['installedpackages']['frickin']['config'][0];
- $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, "/usr/local/bin/frickin");
- if($frickin_config['serveraddress'] != "") fwrite($fout, " -s " . $frickin_config['serveraddress']);
- if($frickin_config['maxtunnels'] != "") fwrite($fout, " -c " . $frickin_config['maxtunnels']);
- fwrite($fout, " &amp;\n");
- fclose($fout);
- mwexec("/usr/bin/killall frickin");
- mwexec("chmod a+rx /usr/local/etc/rc.d/frickin.sh");
- mwexec("/usr/local/etc/rc.d/frickin.sh");
+ global $config;
+ $frickin_config = $config['installedpackages']['frickin']['config'][0];
+ $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, "/usr/local/bin/frickin");
+ if($frickin_config['serveraddress'] != "") fwrite($fout, " -s " . $frickin_config['serveraddress']);
+ if($frickin_config['maxtunnels'] != "") fwrite($fout, " -c " . $frickin_config['maxtunnels']);
+ fwrite($fout, " &amp;\n");
+ fclose($fout);
+ mwexec("/usr/bin/killall frickin");
+ mwexec("chmod a+rx /usr/local/etc/rc.d/frickin.sh");
+ mwexec("/usr/local/etc/rc.d/frickin.sh");
}
</custom_php_global_functions>
<custom_add_php_command>
@@ -61,9 +61,11 @@
mwexec("/usr/bin/killall frickin");
mwexec("chmod a+rx /usr/local/etc/rc.d/frickin.sh");
mwexec("/usr/local/etc/rc.d/frickin.sh");
+ filter_configure();
</custom_php_install_command>
<custom_php_deinstall_command>
- unlink_if_exists("/usr/local/etc/rc.d/frickin.sh");
- unlink_if_exists("/usr/local/bin/frickin");
+ unlink_if_exists("/usr/local/etc/rc.d/frickin.sh");
+ unlink_if_exists("/usr/local/bin/frickin");
+ filter_configure();
</custom_php_deinstall_command>
</packagegui>