From 3167cca31c30ac32f4cf1d54764db766e1d38989 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 11 Aug 2015 12:21:46 +0200 Subject: bandwidthd.inc - remove useless config_(un)lock calls This function does nothing but return. --- config/bandwidthd/bandwidthd.inc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'config/bandwidthd') 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"); -- cgit v1.2.3