From f035c626c7402a8e637ae6848d38b0dfa628366b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 26 Jun 2021 19:55:28 +0200 Subject: Reset issue/motd using the vyos-1x provided python handler --- scripts/init/vyos-router | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'scripts/init') diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router index 1fa8f09..3c2ae1b 100755 --- a/scripts/init/vyos-router +++ b/scripts/init/vyos-router @@ -231,13 +231,11 @@ security_reset () rm -rf /etc/ipsec.conf /etc/ipsec.secrets /etc/swanctl } -# As VyOS does not execute commands that are not present in the CLI we need this -# workaround to reset the issue / motd files on boot to a sane default, probably -# the same default as listed in the python script. +# As VyOS does not execute commands that are not present in the CLI we call +# the script by hand to have a single source for the login banner and MOTD issue_reset () { - echo -e "Welcome to VyOS - \\\n \\\l\n" > /etc/issue - echo -e "Welcome to VyOS\n" > /etc/issue.net + ${vyos_conf_scripts_dir}/system-login-banner.py } start () -- cgit v1.2.3