From 85dc32785d785eca5512ceec78b2058c0aaa6b67 Mon Sep 17 00:00:00 2001 From: Kim Date: Wed, 23 Jan 2019 11:09:25 +0100 Subject: T980 and T969 update serial console baud on the fly * update serial console baud on the fly * Update help of console speed, a reboot is not required anymore to set the correct baud rate. --- scripts/system/vyatta_update_console.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/system/vyatta_update_console.pl b/scripts/system/vyatta_update_console.pl index ff7c2df1..79ad3617 100755 --- a/scripts/system/vyatta_update_console.pl +++ b/scripts/system/vyatta_update_console.pl @@ -102,6 +102,8 @@ sub update_getty{ system("systemctl daemon-reload"); if ( system("systemctl status serial-getty\@$tty.service 2>&1 > /dev/null")) { system("systemctl start serial-getty\@$tty.service"); + } else { + system("/bin/stty -F /dev/$tty $speed cstopb"); } } } -- cgit v1.2.3