~tomleb/alpine-mkinitfs

4355e87515c6de01778d569808a6258613e84a8f — Natanael Copa 1 year, 5 months ago fd5ca29
init: fix typo
2 files changed, 3 insertions(+), 3 deletions(-)

M initramfs-init.in
M tests/initramfs-init.test
M initramfs-init.in => initramfs-init.in +1 -1
@@ 107,7 107,7 @@ list_console_devices() {
}

detect_serial_console() {
	local n=$(awk '$7 ~ /CTS/ || $7 ~ /DSR/ { print $1 }' "$ROOT"/proc/tty/drivers/serial 2>/dev/null)
	local n=$(awk '$7 ~ /CTS/ || $7 ~ /DSR/ { print $1 }' "$ROOT"/proc/tty/driver/serial 2>/dev/null)
	if [ -n "$n" ]; then
		echo ttyS${n%:}
	fi

M tests/initramfs-init.test => tests/initramfs-init.test +2 -2
@@ 124,8 124,8 @@ initramfs_init_tmpfs_root_autodetect_serial_body() {
		true
	EOF

	mkdir -p proc/tty/drivers
	cat > proc/tty/drivers/serial <<-EOF
	mkdir -p proc/tty/driver
	cat > proc/tty/driver/serial <<-EOF
		0: uart:16550A port:000003F8 irq:4 tx:0 rx:0 CTS|DSR
		1: uart:16550A port:000002F8 irq:3 tx:103 rx:0 RTS|DTR
		2: uart:unknown port:000003E8 irq:4