From 49324c2b92cad64679ba51ca0e46dc18f21750df Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 29 Mar 2005 23:16:17 +0000 Subject: Run filter_configure before and after installation --- packages/frickin.xml | 30 ++++++++++++++++-------------- 1 file 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 @@ 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, " &\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, " &\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"); } @@ -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(); - 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(); -- cgit v1.2.3