blob: 763161a24cfcb2d79af412a1bd4a029b992cc912 [file] [log] [blame]
Hieu Huynh325a8112022-10-24 11:15:17 +00001#!/bin/sh -e
2
3
4tty="$1"
5uart=0
6
7case "${tty}" in
8 "ttyS0") uart=1
9 ;;
10 "ttyS1") uart=2
11 ;;
12 "ttyS2") uart=3
13 ;;
14 "ttyS3") uart=4
15 ;;
16 *) echo "Invalid tty passed to $0. Exiting!"
17 exit 1;
18 ;;
19esac
20
21# Default the host routing through the mux to use the BMC (2)
22# This allows the SoL console in webui, and the ssh port 2200, to work
23# upon startup. If UART transcievers are installed on the header and required,
24# this value should be set to 1
25/usr/sbin/ampere_uartmux_ctrl.sh ${uart} 2
26
27/usr/sbin/obmc-console-server --config /etc/obmc-console/server."${tty}".conf "${tty}"