From 41b6d271a04cbf264e4c228db50e2eb6ebfc194b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 29 Mar 2005 22:58:13 +0000 Subject: Setup frickin out of the box. No real need for interface. --- packages/frickin.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'packages') 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 @@ sync_package_frickin(); + + $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, " &\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"); + unlink_if_exists("/usr/local/etc/rc.d/frickin.sh"); unlink_if_exists("/usr/local/bin/frickin"); -- cgit v1.2.3