aboutsummaryrefslogtreecommitdiffstats
path: root/config/rate/rate.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-02-05 10:02:24 -0200
committerRenato Botelho <garga@FreeBSD.org>2015-02-05 20:10:15 -0200
commit07cf2c4b20230ddedee1bf9dddc1e7cd407385f5 (patch)
tree44d40561519e0018ad586bb1449e107c9ae431f3 /config/rate/rate.inc
parente526e4aa28867b7743b0e76993f5f6bebd15bc1b (diff)
downloadpfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.tar.gz
pfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.tar.bz2
pfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.zip
Packages repo cleanup:
- Drop support for pfSense < 2 - Remove archive/, old files can be reached using git - Remove old and unused packages - Move stale files from config subdir to a package subdir
Diffstat (limited to 'config/rate/rate.inc')
-rw-r--r--config/rate/rate.inc34
1 files changed, 0 insertions, 34 deletions
diff --git a/config/rate/rate.inc b/config/rate/rate.inc
deleted file mode 100644
index 34d394ab..00000000
--- a/config/rate/rate.inc
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-function rate_install() {
- global $g, $config;
- conf_mount_rw();
- /* Copy files for backup. */
- mwexec("cp /usr/local/www/status_graph.php /usr/local/www/status_graph.php.orig");
- unlink_if_exists("/usr/local/www/status_graph.php");
- mwexec("cp /usr/local/pkg/bandwidth_by_ip.php /usr/local/www/bandwidth_by_ip.php");
- mwexec("cp /usr/local/pkg/status_graph.php /usr/local/www/status_graph.php");
-
- rate_assign_privs();
- /* Clear the APC cache so that the updates to installed files will work. */
- apc_clear_cache();
- conf_mount_ro();
-}
-
-function rate_deinstall() {
- conf_mount_rw();
- unlink_if_exists("/usr/local/www/status_graph.php");
- unlink_if_exists("/usr/local/www/bandwidth_by_ip.php");
- mwexec("cp /usr/local/www/status_graph.php.orig /usr/local/www/status_graph.php");
- conf_mount_ro();
-}
-
-function rate_assign_privs() {
- conf_mount_rw();
- /* Fix permissions on replaced files */
- mwexec("chown root:wheel /usr/local/www/bandwidth_by_ip.php");
- mwexec("chown root:wheel /usr/local/www/status_graph.php");
- conf_mount_ro();
-}
-
-?> \ No newline at end of file