summaryrefslogtreecommitdiff
path: root/scripts/init
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/init')
-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 ()