summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-05 16:56:17 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-05 16:57:46 +0200
commit309432e44055cd03613af240aabf7818238d9faa (patch)
tree997b0b7f282b1bf3b1d635d944aa5a9e88688251
parent16c953a07f0c132e7f86efca7effbe46dc41038d (diff)
downloadvyatta-cfg-309432e44055cd03613af240aabf7818238d9faa.tar.gz
vyatta-cfg-309432e44055cd03613af240aabf7818238d9faa.zip
serial: T1739: properly delete/recreate serial interface on system boot
(cherry picked from commit d93aa7a934b35dbb4229d2463a869cbaee1654cd)
-rwxr-xr-xscripts/init/vyos-router4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router
index d2d2da8..63797b7 100755
--- a/scripts/init/vyos-router
+++ b/scripts/init/vyos-router
@@ -206,6 +206,10 @@ start ()
# all daemons if just one failed, do the start manually
/usr/lib/frr/frrinit.sh start
+ # 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
+ ${vyos_conf_scripts_dir}/system_console.py || log_failure_msg "could not reset serial console"
+
log_action_begin_msg "Mounting VyOS Config"
# ensure the vyatta_configdir supports a large number of inodes since
# the config hierarchy is often inode-bound (instead of size).