aboutsummaryrefslogtreecommitdiffstats
path: root/config/sshdcond
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-25 09:57:36 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-25 09:57:36 +0200
commit0debbeb95915bfb4972c016777e6198e1ef000ee (patch)
treeaabde26b8555d043a753636a5e434b538731fd4a /config/sshdcond
parentbdeb5bae62a6f3716e3ed7b099f0cca66d9d3ee9 (diff)
downloadpfsense-packages-0debbeb95915bfb4972c016777e6198e1ef000ee.tar.gz
pfsense-packages-0debbeb95915bfb4972c016777e6198e1ef000ee.tar.bz2
pfsense-packages-0debbeb95915bfb4972c016777e6198e1ef000ee.zip
Remove useless remount calls
These are dealt with by install_package() and uninstall_package() from pkg-utils.inc.
Diffstat (limited to 'config/sshdcond')
-rw-r--r--config/sshdcond/sshdcond.inc6
1 files changed, 0 insertions, 6 deletions
diff --git a/config/sshdcond/sshdcond.inc b/config/sshdcond/sshdcond.inc
index 12af3551..c7c19291 100644
--- a/config/sshdcond/sshdcond.inc
+++ b/config/sshdcond/sshdcond.inc
@@ -39,29 +39,23 @@ function restart_sshd() {
function sshdcond_custom_php_install_command() {
global $g, $config;
- conf_mount_rw();
-
/* We need to generate an outfile for our extra commands.
The patched g_szSSHDFileGenerate php file then reads and appends that config.
*/
$fd = fopen("/etc/ssh/sshd_extra", 'w');
fclose($fd);
- conf_mount_ro();
}
function sshdcond_custom_php_deinstall_command() {
global $g, $config;
- conf_mount_rw();
-
/* Delete our config file. */
unlink_if_exists("/etc/ssh/sshd_extra");
/* Re-run sshd config generation script. */
restart_sshd();
- conf_mount_ro();
}
function sshdcond_custom_php_write_config() {