aboutsummaryrefslogtreecommitdiffstats
path: root/packages/frickin.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-29 22:58:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-29 22:58:13 +0000
commit41b6d271a04cbf264e4c228db50e2eb6ebfc194b (patch)
treec0738b364aab16ce13255b480ad002b7c16ff77d /packages/frickin.xml
parent7236a270dae26e16dd5af3335088befdafc7ee73 (diff)
downloadpfsense-packages-41b6d271a04cbf264e4c228db50e2eb6ebfc194b.tar.gz
pfsense-packages-41b6d271a04cbf264e4c228db50e2eb6ebfc194b.tar.bz2
pfsense-packages-41b6d271a04cbf264e4c228db50e2eb6ebfc194b.zip
Setup frickin out of the box. No real need for interface.
Diffstat (limited to 'packages/frickin.xml')
-rw-r--r--packages/frickin.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/frickin.xml b/packages/frickin.xml
index 775937c8..8c04e6dc 100644
--- a/packages/frickin.xml
+++ b/packages/frickin.xml
@@ -50,6 +50,18 @@
<custom_add_php_command>
sync_package_frickin();
</custom_add_php_command>
+ <custom_php_install_command>
+ $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");
+ fwrite($fout, " -s 127.0.0.1");
+ fwrite($fout, " -c 20");
+ 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_install_command>
<custom_php_deinstall_command>
unlink_if_exists("/usr/local/etc/rc.d/frickin.sh");
unlink_if_exists("/usr/local/bin/frickin");