aboutsummaryrefslogtreecommitdiffstats
path: root/config/shellcmd
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-11 15:03:18 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-11 15:03:18 +0200
commit88a7ccd44f39e441356077a4812b44ca6c00a5bb (patch)
tree9036a5bf5de90f58203658b83ff3c2fa7a1a0b30 /config/shellcmd
parentc57263a88bbaf759a32b04fcdec922750c46e47a (diff)
downloadpfsense-packages-88a7ccd44f39e441356077a4812b44ca6c00a5bb.tar.gz
pfsense-packages-88a7ccd44f39e441356077a4812b44ca6c00a5bb.tar.bz2
pfsense-packages-88a7ccd44f39e441356077a4812b44ca6c00a5bb.zip
remove useless config_(un)lock calls round two
Diffstat (limited to 'config/shellcmd')
-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();
-
+
}
?>