aboutsummaryrefslogtreecommitdiffstats
path: root/config/sshdcond
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-28 09:01:07 -0300
committerRenato Botelho <renato@netgate.com>2015-08-28 09:01:07 -0300
commit3977f59b180791156208cd6865eef5cae734f044 (patch)
tree85076ce952355cf3894a5b3f52726439445f0656 /config/sshdcond
parent66dad7feacac607560844228c0cd58537bc1a994 (diff)
parent3bdbee31d112b473ce66bcd321cdcd706dc17131 (diff)
downloadpfsense-packages-3977f59b180791156208cd6865eef5cae734f044.tar.gz
pfsense-packages-3977f59b180791156208cd6865eef5cae734f044.tar.bz2
pfsense-packages-3977f59b180791156208cd6865eef5cae734f044.zip
Merge pull request #1024 from doktornotor/patch-4
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() {