summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-28 16:16:31 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-28 16:16:31 -0400
commitc04299f91ea3e5746c113521712d59189a962936 (patch)
tree9dfc2e161aace5db600062a785d7e319d538953f /etc
parent7c2307844c8f3f0a3a19b0a3c2ce80c7d90695fc (diff)
downloadpfsense-c04299f91ea3e5746c113521712d59189a962936.zip
pfsense-c04299f91ea3e5746c113521712d59189a962936.tar.gz
Require globals.inc and use correct directory name sshd, not ssh
Diffstat (limited to 'etc')
-rwxr-xr-xetc/sshd5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/sshd b/etc/sshd
index 2817b3f..c355f73 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");
@@ -45,9 +46,9 @@
}
/* restore ssh data for nanobsd platform */
- if($g['platform'] == "nanobsd" and file_exists("/conf/ssh/ssh_host_key")) {
+ if($g['platform'] == "nanobsd" and file_exists("/conf/sshd/ssh_host_key")) {
if(!file_exists("/etc/ssh/sshd_host_key.pub")) {
- cp("/conf/ssh/* /etc/ssh/");
+ cp("/conf/sshd/* /etc/ssh/");
}
}
OpenPOWER on IntegriCloud