diff options
author | Kim <kim.sidney@gmail.com> | 2019-01-23 11:09:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-23 11:09:25 +0100 |
commit | 85dc32785d785eca5512ceec78b2058c0aaa6b67 (patch) | |
tree | 0850f28f40515c5127cc99d717378a62f995efde /scripts | |
parent | 6eb6da4f7d7111d46b201e8670aa0f5684bb51e3 (diff) | |
download | vyatta-cfg-system-85dc32785d785eca5512ceec78b2058c0aaa6b67.tar.gz vyatta-cfg-system-85dc32785d785eca5512ceec78b2058c0aaa6b67.zip |
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.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/system/vyatta_update_console.pl | 2 |
1 files changed, 2 insertions, 0 deletions
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"); } } } |