mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 21:17:55 +00:00
Add CONFIG_BOOT_EXTRA_TTYS option
It specifies whitespace-separated list of console devices to run Heads on in addition to the default one. Example for board config: export CONFIG_BOOT_EXTRA_TTYS="tty0 tty1" Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
parent
b5fb2f907c
commit
565963d51d
@ -136,6 +136,13 @@ else
|
||||
|
||||
if [ -x "$CONFIG_BOOTSCRIPT" ]; then
|
||||
echo '***** Normal boot:' $CONFIG_BOOTSCRIPT
|
||||
|
||||
if [ -x /bin/setsid ] && [ -x /bin/agetty ]; then
|
||||
for console in $CONFIG_BOOT_EXTRA_TTYS; do
|
||||
setsid agetty -aroot -l"$CONFIG_BOOTSCRIPT" "$console" linux &
|
||||
done
|
||||
fi
|
||||
|
||||
exec "$CONFIG_BOOTSCRIPT"
|
||||
|
||||
# We should never reach here, but just in case...
|
||||
|
Loading…
Reference in New Issue
Block a user