summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-03-26 17:33:15 -0400
committerjim-p <jimp@pfsense.org>2011-03-26 17:33:15 -0400
commit17730d9d862d2bee9ca9e87c31ca10cf1bd460a7 (patch)
tree9e9e032309eb41bf0c67656f9b28529c4d587292 /etc
parent974c5af72910433fbafeb9266018b1e2919a676a (diff)
downloadpfsense-17730d9d862d2bee9ca9e87c31ca10cf1bd460a7.zip
pfsense-17730d9d862d2bee9ca9e87c31ca10cf1bd460a7.tar.gz
Only run conf_mount_rw here if there isn't another process going.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/sshd5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/sshd b/etc/sshd
index 0664b21..a488729 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -42,7 +42,10 @@
exit;
}
- conf_mount_rw();
+ /* are we already running? if not, do conf_mount_rw(), otherwise it should already be rw */
+ if(!is_subsystem_dirty('sshdkeys')) {
+ conf_mount_rw();
+ }
function file_size($file) {
$size = filesize($file);
OpenPOWER on IntegriCloud