summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
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