Skip to content

Commit b20d68d

Browse files
committed
DO NOT MERGE: use first available (boot) console by default
This allows to use any existing console kernel used before busybox. So no need for explicit selection of "tty", this way produced rootfs could be used with any Linux kernel on Hw with the same architecture but different console ports. But for this to work it's required to disable BR2_TARGET_GENERIC_GETTY. Signed-off-by: Alexey Brodkin <[email protected]>
1 parent 4bca319 commit b20d68d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system/skeleton/etc/inittab

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ null::sysinit:/bin/hostname -F /etc/hostname
2323
# now run any rc scripts
2424
::sysinit:/etc/init.d/rcS
2525

26+
# Start an "askfirst" shell on the console (whatever that may be)
27+
::askfirst:-/bin/sh
28+
2629
# Put a getty on the serial port
2730
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
2831

0 commit comments

Comments
 (0)