diff options
author | doktornotor <notordoktor@gmail.com> | 2015-08-11 15:01:41 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-08-11 15:01:41 +0200 |
commit | c57263a88bbaf759a32b04fcdec922750c46e47a (patch) | |
tree | 6e978e5d42200d05a0a776daab98d031b080754e /config/tinc | |
parent | 555a307c7d661b652c5bea4d2a8a0453d74532d9 (diff) | |
download | pfsense-packages-c57263a88bbaf759a32b04fcdec922750c46e47a.tar.gz pfsense-packages-c57263a88bbaf759a32b04fcdec922750c46e47a.tar.bz2 pfsense-packages-c57263a88bbaf759a32b04fcdec922750c46e47a.zip |
remove useless config_(un)lock calls round two
Diffstat (limited to 'config/tinc')
-rw-r--r-- | config/tinc/tinc.inc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/config/tinc/tinc.inc b/config/tinc/tinc.inc index 717ce967..82d5b453 100644 --- a/config/tinc/tinc.inc +++ b/config/tinc/tinc.inc @@ -26,7 +26,6 @@ if (!function_exists('clear_log_file')) { function tinc_save() { global $config; conf_mount_rw(); - config_lock(); exec("/bin/mv -f /usr/local/etc/tinc /usr/local/etc/tinc.old"); safe_mkdir("/usr/local/etc/tinc"); safe_mkdir("/usr/local/etc/tinc/hosts"); @@ -127,7 +126,6 @@ function tinc_save() { rmdir_recursive("/usr/local/etc/tinc.old"); conf_mount_ro(); - config_unlock(); } function tinc_install() { @@ -142,7 +140,6 @@ function tinc_install() { clear_log_file("/var/log/tinc.log"); conf_mount_rw(); - config_lock(); /* Create Interface Group */ if (!is_array($config['ifgroups']['ifgroupentry'])) @@ -161,14 +158,12 @@ function tinc_install() { write_config(); conf_mount_ro(); - config_unlock(); } function tinc_deinstall() { global $config; /* Remove Interface Group */ conf_mount_rw(); - config_lock(); if (!is_array($config['ifgroups']['ifgroupentry'])) $config['ifgroups']['ifgroupentry'] = array(); @@ -200,7 +195,6 @@ function tinc_deinstall() { write_config(); } conf_mount_ro(); - config_unlock(); rmdir_recursive("/var/tmp/tinc"); rmdir_recursive("/usr/local/etc/tinc*"); |