diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-27 18:59:32 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-27 18:59:32 -0400 |
commit | 4e90019b9eeab81e1e47bad3cc37269dc9164d4f (patch) | |
tree | 49c71e94a26e7ece0bd2b17cd3214ce4c0a22e22 /etc | |
parent | d62bcdef48332685e1239f46a30810e3a826f0a4 (diff) | |
download | pfsense-4e90019b9eeab81e1e47bad3cc37269dc9164d4f.zip pfsense-4e90019b9eeab81e1e47bad3cc37269dc9164d4f.tar.gz |
Add nanobsd support
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/sshd | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -44,6 +44,13 @@ return $size; } + /* restore ssh data for nanobsd platform */ + if($g['platform'] == "nanobsd" and file_exists("/config/ssh/ssh_host_key")) { + if(!file_exists("/etc/ssh/sshd_host_key.pub")) { + cp("/config/ssh/* /etc/ssh/"); + } + } + /* if any of these files are 0 bytes then they are corrupted. * remove them */ @@ -180,6 +187,13 @@ echo "done.\n"; } + // NanoBSD + if($g['platform'] == "nanobsd") { + if(!is_dir("/config/sshd")) + exec("mkdir /config/sshd"); + exec("cp /etc/ssh/ssh_host* /config/sshd"); + } + conf_mount_ro(); |