aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-25 08:25:06 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-25 08:25:06 +0200
commit697c4e5735faa3aa1091dffb7044827027d4d35d (patch)
treebae2f9e93073951b358bfd03e5c56a630f136035 /config
parente80663379bef10c5c0bbf1228030c6c9438278d2 (diff)
downloadpfsense-packages-697c4e5735faa3aa1091dffb7044827027d4d35d.tar.gz
pfsense-packages-697c4e5735faa3aa1091dffb7044827027d4d35d.tar.bz2
pfsense-packages-697c4e5735faa3aa1091dffb7044827027d4d35d.zip
remove useless remount calls on package_deinstall
These are dealt with by uninstall_package() from pkg-utils.inc. Also the service is stopped by it.
Diffstat (limited to 'config')
-rw-r--r--config/apcupsd/apcupsd.inc3
1 files changed, 0 insertions, 3 deletions
diff --git a/config/apcupsd/apcupsd.inc b/config/apcupsd/apcupsd.inc
index 2b166994..e3b9b587 100644
--- a/config/apcupsd/apcupsd.inc
+++ b/config/apcupsd/apcupsd.inc
@@ -40,7 +40,6 @@ function php_install_apcupsd() {
function php_deinstall_apcupsd() {
global $config, $g;
- conf_mount_rw();
$pfs_version = substr(trim(file_get_contents("/etc/version")), 0, 3);
if ($pfs_version == "2.1" || $pfs_version == "2.2") {
define('APCUPSD_BASE', '/usr/pbi/apcupsd-' . php_uname("m"));
@@ -48,7 +47,6 @@ function php_deinstall_apcupsd() {
define('APCUPSD_BASE', '/usr/local');
}
- exec("/usr/bin/killall apcupsd");
unlink_if_exists(APCUPSD_BASE . "/etc/rc.d/apcupsd.sh");
unlink_if_exists(APCUPSD_BASE . "/etc/apcupsd/apcupsd.conf");
unlink_if_exists("/var/log/apcupsd/apcupsd.log");
@@ -61,7 +59,6 @@ function php_deinstall_apcupsd() {
exec("/bin/rm -rf /var/run/apcupsd/");
}
- conf_mount_ro();
}
function validate_input_apcupsd($post, &$input_errors) {