summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-27 18:59:32 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-27 18:59:32 -0400
commit4e90019b9eeab81e1e47bad3cc37269dc9164d4f (patch)
tree49c71e94a26e7ece0bd2b17cd3214ce4c0a22e22 /etc
parentd62bcdef48332685e1239f46a30810e3a826f0a4 (diff)
downloadpfsense-4e90019b9eeab81e1e47bad3cc37269dc9164d4f.zip
pfsense-4e90019b9eeab81e1e47bad3cc37269dc9164d4f.tar.gz
Add nanobsd support
Diffstat (limited to 'etc')
-rwxr-xr-xetc/sshd14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/sshd b/etc/sshd
index 12f3fed..f0611b4 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -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();
OpenPOWER on IntegriCloud