diff options
author | doktornotor <notordoktor@gmail.com> | 2015-08-11 12:21:46 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-08-11 12:21:46 +0200 |
commit | 3167cca31c30ac32f4cf1d54764db766e1d38989 (patch) | |
tree | acb8cb01ec484f34cf305bc76e19020b485657e7 /config/bandwidthd | |
parent | 90beeccde2279ff44438fbc197b1f67ae028faa8 (diff) | |
download | pfsense-packages-3167cca31c30ac32f4cf1d54764db766e1d38989.tar.gz pfsense-packages-3167cca31c30ac32f4cf1d54764db766e1d38989.tar.bz2 pfsense-packages-3167cca31c30ac32f4cf1d54764db766e1d38989.zip |
bandwidthd.inc - remove useless config_(un)lock calls
This function does nothing but return.
Diffstat (limited to 'config/bandwidthd')
-rw-r--r-- | config/bandwidthd/bandwidthd.inc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/config/bandwidthd/bandwidthd.inc b/config/bandwidthd/bandwidthd.inc index ac5cc116..b57b2732 100644 --- a/config/bandwidthd/bandwidthd.inc +++ b/config/bandwidthd/bandwidthd.inc @@ -51,14 +51,12 @@ function is_blank($value) { function bandwidthd_install_deinstall() { conf_mount_rw(); - config_lock(); exec("rm -f /usr/local/etc/rc.d/bandwidthd*"); exec("rm -rf " . PKG_BANDWIDTHD_BASE . "/htdocs"); exec("rm -f /usr/local/www/bandwidthd"); // Remove the cron job, if it is there install_cron_job("/bin/kill -HUP `cat /var/run/bandwidthd.pid`", false); conf_mount_ro(); - config_unlock(); } function bandwidthd_install_config() { @@ -71,7 +69,6 @@ function bandwidthd_install_config() { $bandwidthd_runtime_library_env = PKG_BANDWIDTHD_RUNTIME_LIBRARY_ENV; conf_mount_rw(); - config_lock(); /* user defined values */ $bandwidthd_config = $config['installedpackages']['bandwidthd']['config'][0]; @@ -391,7 +388,6 @@ EOD; install_cron_job("/bin/kill -HUP `cat /var/run/bandwidthd.pid`", false); } conf_mount_ro(); - config_unlock(); stop_service("bandwidthd"); if ($bandwidthd_enable) { start_service("bandwidthd"); |