aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-11 14:34:41 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-11 14:34:41 +0200
commitcfc617faebcd50dd539148c7016b759a26dae740 (patch)
tree00a8b0afc410f5f1a28e9969dfd7ed3b3eae82b9 /config
parent4deec4a1ce535ea656744735feba890bd3cfe3b1 (diff)
downloadpfsense-packages-cfc617faebcd50dd539148c7016b759a26dae740.tar.gz
pfsense-packages-cfc617faebcd50dd539148c7016b759a26dae740.tar.bz2
pfsense-packages-cfc617faebcd50dd539148c7016b759a26dae740.zip
lcdproc-dev - remove useless config_(un)lock calls
Diffstat (limited to 'config')
-rw-r--r--config/lcdproc-dev/lcdproc.inc13
1 files changed, 0 insertions, 13 deletions
diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc
index 5cb99324..95561fb6 100644
--- a/config/lcdproc-dev/lcdproc.inc
+++ b/config/lcdproc-dev/lcdproc.inc
@@ -63,16 +63,6 @@
fclose($handle);
chmod($file, 0755);
}
- function before_form_lcdproc(&$pkg) {
- global $config;
- config_lock();
- config_unlock();
- }
- function before_form_lcdproc_screens(&$pkg) {
- global $config;
- config_lock();
- config_unlock();
- }
function validate_form_lcdproc($post, &$input_errors) {
if($post['comport']) {
switch($post['comport']) {
@@ -150,7 +140,6 @@
#continue sync package
lcdproc_notice("Sync: Begin package sync");
- config_lock();
$lcdproc_config = $config['installedpackages']['lcdproc']['config'][0];
$lcdproc_screens_config = $config['installedpackages']['lcdprocscreens']['config'][0];
/* since config is written before this file invoked we don't need to read post data */
@@ -191,7 +180,6 @@
break;
default:
lcdproc_warn("The selected com port is not valid!");
- config_unlock();
return;
}
$config_text = "[server]\n";
@@ -524,7 +512,6 @@ EOD;
conf_mount_ro();
}
}
- config_unlock();
lcdproc_notice("Sync: End package sync");
}
function set_lcd_value($fieldname, $max, $default_value) {