1 |
diff -Nur e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus |
2 |
--- e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus 1970-01-01 01:00:00.000000000 +0100 |
3 |
+++ e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus 2015-06-25 19:04:29.320484394 +0200 |
4 |
@@ -0,0 +1 @@ |
5 |
+enabled |
6 |
diff -Nur e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd |
7 |
--- e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd 2015-06-25 18:33:53.112340974 +0200 |
8 |
+++ e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd 2015-06-25 18:35:25.276957426 +0200 |
9 |
@@ -1 +1,13 @@ |
10 |
-PrintMotd no |
11 |
+{ |
12 |
+my $MotdStatus = $sshd{'MotdStatus'} || 'enabled'; |
13 |
+ |
14 |
+if ( $MotdStatus eq 'disabled' ) |
15 |
+ { |
16 |
+ $OUT .= "PrintMotd no\n"; |
17 |
+ } |
18 |
+ |
19 |
+else |
20 |
+ { |
21 |
+ $OUT .= "PrintMotd yes\n"; |
22 |
+ } |
23 |
+} |