Browse Source

base-files: add console to inittab

When running OpenWrt inside an LXC container no shell is opend as LXC
defaults to a virtual /dev/console.

This patch allows to enter a shell after starting the container via
`lxc-start`, without it is only posible to access a shell on tty1 via
`lxc-console`.

Signed-off-by: Paul Spooren <[email protected]>
Paul Spooren 6 years ago
parent
commit
cde52cb486
1 changed files with 1 additions and 0 deletions
  1. 1 0
      target/linux/x86/base-files/etc/inittab

+ 1 - 0
target/linux/x86/base-files/etc/inittab

@@ -3,3 +3,4 @@
 ttyS0::askfirst:/usr/libexec/login.sh
 hvc0::askfirst:/usr/libexec/login.sh
 tty1::askfirst:/usr/libexec/login.sh
+console::askfirst:/usr/libexec/login.sh