aboutsummaryrefslogtreecommitdiffstats
path: root/config/shellcmd/shellcmd.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-11 11:53:10 -0300
committerRenato Botelho <renato@netgate.com>2015-08-11 11:53:10 -0300
commit3faf4d8c63981742cf7d6a99c41c9e39d815db0d (patch)
tree655166f28159c9630a5c13e078f7aa54411cd6c7 /config/shellcmd/shellcmd.inc
parentc0ab8887bdfff3064351e598840bdce35a174fbd (diff)
parent0767305b6d3ba9725d138d6cd8d65fe610e85201 (diff)
downloadpfsense-packages-3faf4d8c63981742cf7d6a99c41c9e39d815db0d.tar.gz
pfsense-packages-3faf4d8c63981742cf7d6a99c41c9e39d815db0d.tar.bz2
pfsense-packages-3faf4d8c63981742cf7d6a99c41c9e39d815db0d.zip
Merge pull request #989 from doktornotor/patch-2
Diffstat (limited to 'config/shellcmd/shellcmd.inc')
-rw-r--r--config/shellcmd/shellcmd.inc23
1 files changed, 2 insertions, 21 deletions
diff --git a/config/shellcmd/shellcmd.inc b/config/shellcmd/shellcmd.inc
index c5020d5f..04cbf3d6 100644
--- a/config/shellcmd/shellcmd.inc
+++ b/config/shellcmd/shellcmd.inc
@@ -69,26 +69,9 @@ function shellcmd_install_command()
global $config;
conf_mount_rw();
- config_lock();
-
- //write_config();
-
- //write_rcfile(array(
- // "file" => "shellcmd.sh",
- // "start" => "/usr/sbin/shellcmd -s &",
- // "stop" => "kill -9 `cat /var/run/shellcmd.pid`"
- // )
- //);
-
shellcmd_sync_package();
-
- //if (pkg_is_service_running('shellcmd')) {
- //documentation purposes
- //}
-
conf_mount_ro();
- config_unlock();
-
+
}
@@ -96,12 +79,10 @@ function shellcmd_deinstall_command()
{
conf_mount_rw();
- config_lock();
$handle = popen("/usr/local/etc/rc.d/shellcmd.sh stop", "r");
//unlink_if_exists("/usr/local/etc/rc.d/shellcmd.sh");
conf_mount_ro();
- config_unlock();
-
+
}
?>