Commit 48c91ba8 authored by Tuan Hoang's avatar Tuan Hoang

init: add check for s390x consoles

parent eea062f1
......@@ -93,6 +93,8 @@ rc_add() {
# Recursively resolve tty aliases like console or tty0
list_console_devices() {
[ "$1" = "ttyS0" ] && [ -e /sys/class/tty/sclp_line0 ] && return
if ! [ -e /sys/class/tty/$1/active ]; then
echo $1
return
......@@ -101,6 +103,10 @@ list_console_devices() {
for dev in $(cat /sys/class/tty/$1/active); do
list_console_devices $dev
done
for _tty in hvc0 xvc0 hvsi0 sclp_line0 ttysclp0 "3270!tty1"; do
[ -e /sys/class/tty/$_tty ] && echo $_tty
done
}
setup_inittab_console(){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment