aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-08-04 17:05:33 +0000
committerJohn Crispin <blogic@openwrt.org>2013-08-04 17:05:33 +0000
commit829ffa6bd807db46617855170d91544611fad865 (patch)
tree1a1957e2c13d98d4bba83995ded9b2b9ce365616 /target/linux
parent8a2b720565e10551cea19f64da483a1d1cff9da8 (diff)
downloadupstream-829ffa6bd807db46617855170d91544611fad865.tar.gz
upstream-829ffa6bd807db46617855170d91544611fad865.tar.bz2
upstream-829ffa6bd807db46617855170d91544611fad865.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37693 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-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 0000000000..ca90fd8a2a
--- /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