diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-29 23:16:17 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-29 23:16:17 +0000 |
commit | 49324c2b92cad64679ba51ca0e46dc18f21750df (patch) | |
tree | 1ce3b68d181f10663b3e04eebe30ac26bd85e35a /packages | |
parent | 41b6d271a04cbf264e4c228db50e2eb6ebfc194b (diff) | |
download | pfsense-packages-49324c2b92cad64679ba51ca0e46dc18f21750df.tar.gz pfsense-packages-49324c2b92cad64679ba51ca0e46dc18f21750df.tar.bz2 pfsense-packages-49324c2b92cad64679ba51ca0e46dc18f21750df.zip |
Run filter_configure before and after installation
Diffstat (limited to 'packages')
-rw-r--r-- | packages/frickin.xml | 30 |
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, " &\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"); } </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> |