Hieu Huynh | 325a811 | 2022-10-24 11:15:17 +0000 | [diff] [blame^] | 1 | #!/bin/sh -e |
| 2 | |
| 3 | |
| 4 | tty="$1" |
| 5 | uart=0 |
| 6 | |
| 7 | case "${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 | ;; |
| 19 | esac |
| 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}" |