summaryrefslogtreecommitdiff
path: root/target/linux/x86
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-08-04 17:05:33 +0000
committerJohn Crispin <john@openwrt.org>2013-08-04 17:05:33 +0000
commitf0b5e7d419c26c5b5da60af35fc1627fb446f9c9 (patch)
treeea0297c09822ab8bccc2e34a52a6863ed347b1c8 /target/linux/x86
parentc7976ae5f8f7dac392d01550ef8c357a0d2133c7 (diff)
downloadmtk-20170518-f0b5e7d419c26c5b5da60af35fc1627fb446f9c9.zip
mtk-20170518-f0b5e7d419c26c5b5da60af35fc1627fb446f9c9.tar.gz
mtk-20170518-f0b5e7d419c26c5b5da60af35fc1627fb446f9c9.tar.bz2
x86: change /dev/console to tty to fix job control
Job control is turned off because it cannot obtain controlling terminal on /dev/console, so it is impossible to do any job control operation behind real x86 device (keyboard+monitor or virtualized). This patch switches /dev/console to tty devices for ash on x86 generic target. Signed-off-by: Jiri Slachta <slachta@cesnet.cz> SVN-Revision: 37693
Diffstat (limited to 'target/linux/x86')
-rw-r--r--target/linux/x86/base-files/etc/inittab4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/x86/base-files/etc/inittab b/target/linux/x86/base-files/etc/inittab
new file mode 100644
index 0000000..ca90fd8
--- /dev/null
+++ b/target/linux/x86/base-files/etc/inittab
@@ -0,0 +1,4 @@
+::sysinit:/etc/init.d/rcS S boot
+::shutdown:/etc/init.d/rcS K shutdown
+ttyS0::askfirst:/bin/ash --login
+tty1::askfirst:/bin/ash --login