From 309432e44055cd03613af240aabf7818238d9faa Mon Sep 17 00:00:00 2001
From: Christian Poessinger <christian@poessinger.com>
Date: Thu, 5 Aug 2021 16:56:17 +0200
Subject: serial: T1739: properly delete/recreate serial interface on system
 boot

(cherry picked from commit d93aa7a934b35dbb4229d2463a869cbaee1654cd)
---
 scripts/init/vyos-router | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'scripts/init')

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).
-- 
cgit v1.2.3