aboutsummaryrefslogtreecommitdiffstats
path: root/packages/bsdstats/bsdstats.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bsdstats/bsdstats.xml')
-rw-r--r--packages/bsdstats/bsdstats.xml17
1 files changed, 12 insertions, 5 deletions
diff --git a/packages/bsdstats/bsdstats.xml b/packages/bsdstats/bsdstats.xml
index 1e739765..ba918b8e 100644
--- a/packages/bsdstats/bsdstats.xml
+++ b/packages/bsdstats/bsdstats.xml
@@ -24,12 +24,19 @@
system("/usr/local/etc/periodic/monthly/300.statistics");
$getid=file_get_contents("/tmp/getid");
log_error("Thanks for installing BSDStats. Your id is {$getid}.");
+ update_status("Thanks for installing BSDStats. Your id is {$getid}.");
+ update_output_window("Thanks for installing BSDStats. Your id is {$getid}.");
</custom_php_install_command>
<custom_php_deinstall_command>
- system("cat /etc/periodic.conf | grep -n \"monthly_statistics_report_devices\" >/tmp/periodic.conf");
- system("cat /tmp/periodic.conf | grep -n \"monthly_statistics_enable\" >/etc/periodic.conf");
- system("rm /usr/local/etc/periodic/monthly/300.statistics");
- system("rm /tmp/periodic.conf");
- system("rm /tmp/getid");
+ system("/bin/cat /etc/periodic.conf | grep -n \"monthly_statistics_report_devices\" >/tmp/periodic.conf");
+ system("/bin/cat /tmp/periodic.conf | grep -n \"monthly_statistics_enable\" >/etc/periodic.conf");
+ system("/bin/rm /usr/local/etc/periodic/monthly/300.statistics");
+ system("/bin/rm /tmp/periodic.conf");
+ system("/bin/rm /tmp/getid");
</custom_php_deinstall_command>
+ <additional_files_needed>
+ <prefix>/usr/bin/</prefix>
+ <chmod>077</chmod>
+ <item>http://www.pfsense.com/packages/config/bsdstats/bin/dig</item>
+ </additional_files_needed>
</packagegui>