diff options
author | Renato Botelho <renato@netgate.com> | 2016-10-12 16:29:07 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-10-12 16:29:49 -0300 |
commit | dc61252ae4dbfcfe5d75f40c86b5cf955242b788 (patch) | |
tree | 8db639550cb248216a10b6b9d5ec10ab6384c32f /src/etc/sshd | |
parent | 9ed7f8f635c6b8d8074c2abe754aadb965aa47c4 (diff) | |
download | pfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.zip pfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.tar.gz |
Deprecate nanobsd platform and remove all conditionals that uses it
Diffstat (limited to 'src/etc/sshd')
-rwxr-xr-x | src/etc/sshd | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/etc/sshd b/src/etc/sshd index 48959b9..7c40f2d 100755 --- a/src/etc/sshd +++ b/src/etc/sshd @@ -43,19 +43,6 @@ foreach ($keys as $key) { $keyfiles[] = "ssh_host_{$key['suffix']}key.pub"; } -/* restore ssh data for nanobsd platform */ -if ($g['platform'] == "nanobsd" and file_exists("/conf/sshd/ssh_host_key") and !file_exists("{$sshConfigDir}/ssh_host_key.pub")) { - echo "Restoring SSH from /conf/sshd/"; - exec("/bin/cp -p /conf/sshd/* {$sshConfigDir}/"); - - /* make sure host private key permissions aren't too open so sshd won't complain */ - foreach ($keyfiles as $f2c) { - if (file_exists("{$sshConfigDir}/{$f2c}")) { - chmod("{$sshConfigDir}/{$f2c}", 0600); - } - } -} - /* if any of these files are 0 bytes then they are corrupted. * remove them */ @@ -186,12 +173,5 @@ if ($status <> 0) { echo "done.\n"; } -// NanoBSD -if ($g['platform'] == "nanobsd") { - if (!is_dir("/conf/sshd")) { - mkdir("/conf/sshd", 0750); - } - $_gb = exec("/bin/cp -p {$sshConfigDir}/ssh_host* /conf/sshd"); -} unset($keys, $keyfiles); ?> |