summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorNamezero <namezero@afim.info>2012-05-04 15:18:20 +0300
committerNamezero <namezero@afim.info>2012-05-04 15:18:20 +0300
commit3eebc3ebfc2ca2c3cf9e5c0e206978a9cd4baaf6 (patch)
tree6ad8d01903f2d30619b89d44baa6c8314562facc /etc/sshd
parenta52706d5d8bbaff13e22c78990648f2e4e17b1c7 (diff)
downloadpfsense-3eebc3ebfc2ca2c3cf9e5c0e206978a9cd4baaf6.zip
pfsense-3eebc3ebfc2ca2c3cf9e5c0e206978a9cd4baaf6.tar.gz
Minimal non-intrusive change for SSHDCond package extra parameters
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/sshd b/etc/sshd
index a488729..fff1458 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -121,6 +121,15 @@
$sshconf .= "Protocol 2\n";
/* Run the server on another port if we have one defined */
$sshconf .= "Port $sshport\n";
+
+ /* Apply package SSHDCond settings if config file exists */
+ if(file_exists("/etc/sshd_extra"))
+ {
+ $fdExtra = fopen("/etc/sshd_extra", 'r');
+ $szExtra = fread($fdExtra, 1048576); // Read up to 1MB from extra file
+ $sshconf .= $szExtra;
+ fclose($fdExtra);
+ }
/* Write the new sshd config file */
$fd = fopen("/etc/ssh/sshd_config", "w");
OpenPOWER on IntegriCloud