summaryrefslogtreecommitdiff
path: root/scripts/init/vyos-router
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-26 19:55:28 +0200
committerChristian Poessinger <christian@poessinger.com>2021-06-26 19:55:28 +0200
commitf035c626c7402a8e637ae6848d38b0dfa628366b (patch)
tree35cf5309d7b090391ba2c63debed760a2c346226 /scripts/init/vyos-router
parentb00aefc2840458e26c0c7f04ec6733e870b70e7e (diff)
downloadvyatta-cfg-f035c626c7402a8e637ae6848d38b0dfa628366b.tar.gz
vyatta-cfg-f035c626c7402a8e637ae6848d38b0dfa628366b.zip
Reset issue/motd using the vyos-1x provided python handler
Diffstat (limited to 'scripts/init/vyos-router')
-rwxr-xr-xscripts/init/vyos-router8
1 files changed, 3 insertions, 5 deletions
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 ()