summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-28 16:15:07 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-28 16:17:53 -0400
commit8fe7e3fcd28bd1ba0ca6f9a2fc9c3863217fe337 (patch)
treecd9496e1ebab81969314c694c42c43baa93ce2a6 /etc/sshd
parentdf61b7b4addf5fd4474880bd8f4a28e95642a6e1 (diff)
downloadpfsense-8fe7e3fcd28bd1ba0ca6f9a2fc9c3863217fe337.zip
pfsense-8fe7e3fcd28bd1ba0ca6f9a2fc9c3863217fe337.tar.gz
Require globals.inc and use correct directory name sshd, not ssh
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/sshd b/etc/sshd
index 07eb5ab..96e16a0 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -28,6 +28,7 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
+ require_once("globals.inc");
require_once("config.inc");
require_once("notices.inc");
@@ -47,9 +48,9 @@
}
/* restore ssh data for nanobsd platform */
- if($g['platform'] == "nanobsd" and file_exists("/conf/ssh/ssh_host_key")) {
- if(!file_exists("/etc/ssh/sshd_host_key.pub")) {
- cp("/conf/ssh/* /etc/ssh/");
+ if($g['platform'] == "nanobsd" and file_exists("/conf/sshd/ssh_host_key")) {
+ if(!file_exists("/etc/sshd/sshd_host_key.pub")) {
+ cp("/conf/sshd/* /etc/ssh/");
}
}
OpenPOWER on IntegriCloud