aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2019-05-07 13:09:53 +0200
committerAlexander Couzens <lynxis@fe80.eu>2019-05-21 14:54:15 +0200
commitcde52cb4866fe8cf4a19bb2bb32ff7802e542e19 (patch)
tree12708cdf244d405c27bc7df1a3e08d57df6fa8e5 /target
parent8357b8131cd72b02794da2c430f3ca54416d89f2 (diff)
downloadupstream-cde52cb4866fe8cf4a19bb2bb32ff7802e542e19.tar.gz
upstream-cde52cb4866fe8cf4a19bb2bb32ff7802e542e19.tar.bz2
upstream-cde52cb4866fe8cf4a19bb2bb32ff7802e542e19.zip
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 <mail@aparcar.org>
Diffstat (limited to 'target')
-rw-r--r--target/linux/x86/base-files/etc/inittab1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/x86/base-files/etc/inittab b/target/linux/x86/base-files/etc/inittab
index f4747f200d..eb0b57ba18 100644
--- a/target/linux/x86/base-files/etc/inittab
+++ b/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