diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-11 08:22:37 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-11 08:22:37 -0300 |
commit | c6e18d38e9ad1e0919bbdfc659f4b6b7ace1a87f (patch) | |
tree | 5d2491df8a15cbe1789ad84bb3b6eaebbc787552 /config/notes/notes.inc | |
parent | 01b7b54f3ca60e5a3a05fd336fce3b5bda318482 (diff) | |
parent | 2ef5ab030b30634a05cff787ecb58a8fac191253 (diff) | |
download | pfsense-packages-c6e18d38e9ad1e0919bbdfc659f4b6b7ace1a87f.tar.gz pfsense-packages-c6e18d38e9ad1e0919bbdfc659f4b6b7ace1a87f.tar.bz2 pfsense-packages-c6e18d38e9ad1e0919bbdfc659f4b6b7ace1a87f.zip |
Merge pull request #982 from doktornotor/patch-24
Diffstat (limited to 'config/notes/notes.inc')
-rw-r--r-- | config/notes/notes.inc | 62 |
1 files changed, 4 insertions, 58 deletions
diff --git a/config/notes/notes.inc b/config/notes/notes.inc index 29b51396..ddc54a3f 100644 --- a/config/notes/notes.inc +++ b/config/notes/notes.inc @@ -1,14 +1,11 @@ <?php -/* $Id$ */ -/* -/* ========================================================================== */ /* notes.inc + part of pfSense (https://www.pfSense.org/) Copyright (C) 2008 Mark J Crane + Copyright (C) 2015 ESF, LLC All rights reserved. -*/ -/* ========================================================================== */ -/* + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -30,62 +27,11 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -function notes_sync_package() { - - //global $config; - -} - - -function notes_install_command() { - - global $config; - conf_mount_rw(); - config_lock(); - - if (!is_dir('/usr/local/www/packages/')) { - exec("mkdir /usr/local/www/packages/"); - } - - //if (!is_dir('/usr/local/www/packages/notes/')) { - // exec("mkdir /usr/local/www/packages/notes/"); - //} - - //rename PHP files from .tmp to .php - //exec("cp /tmp/notes.tmp /usr/local/www/packages/phpservice/notes.php"); - //unlink_if_exists("/tmp/notes.tmp"); - - //write_config(); - - //write_rcfile(array( - // "file" => "notes.sh", - // "start" => "/usr/local/bin/php /usr/local/pkg/notes.php", - // "stop" => "rm /tmp/phpmonitor.pid" - // ) - //); - - notes_sync_package(); - - //if (pkg_is_service_running('notes')) { - //documentation purposes - //} - - conf_mount_ro(); - config_unlock(); - -} - - function notes_deinstall_command() { - conf_mount_rw(); - config_lock(); unlink_if_exists("/usr/local/pkg/notes.xml"); unlink_if_exists("/usr/local/pkg/notes.inc"); conf_mount_ro(); - config_unlock(); - } -?>
\ No newline at end of file +?> |