diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-19 19:57:29 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-19 19:57:29 +0100 |
commit | d1b74e3ed68ae608a11ba22f15466f5a3c323e31 (patch) | |
tree | b96ad9aa04dd3e473e05e80fa643456dd1277216 /src/conf_mode | |
parent | a0cd6bbf298533f8812acae1154a71cdea3176a4 (diff) | |
download | vyos-1x-d1b74e3ed68ae608a11ba22f15466f5a3c323e31.tar.gz vyos-1x-d1b74e3ed68ae608a11ba22f15466f5a3c323e31.zip |
banner: T2135: add missing \n in login banner
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/system-login-banner.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/conf_mode/system-login-banner.py b/src/conf_mode/system-login-banner.py index 20cc16f97..5a34a0b06 100755 --- a/src/conf_mode/system-login-banner.py +++ b/src/conf_mode/system-login-banner.py @@ -25,6 +25,7 @@ individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. + """ PRELOGIN_FILE = r'/etc/issue' @@ -32,8 +33,8 @@ PRELOGIN_NET_FILE = r'/etc/issue.net' POSTLOGIN_FILE = r'/etc/motd' default_config_data = { - 'issue': 'Welcome to VyOS - \n \l', - 'issue_net': 'Welcome to VyOS', + 'issue': 'Welcome to VyOS - \n \l\n', + 'issue_net': 'Welcome to VyOS\n', 'motd': motd } @@ -54,6 +55,8 @@ def get_config(): if tmp: tmp = tmp.replace('\\n','\n') tmp = tmp.replace('\\t','\t') + # always add newline character + tmp += '\n' else: tmp = '' @@ -66,6 +69,8 @@ def get_config(): if tmp: tmp = tmp.replace('\\n','\n') tmp = tmp.replace('\\t','\t') + # always add newline character + tmp += '\n' else: tmp = '' |