summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/sysvinit/sysvinit-inittab
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2015-11-24 13:33:02 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:31:02 +0000
commitb93369a7943949f51057e0a704f5524ab7682fe6 (patch)
treed81af49fe573aa521331e4f5a111b0c6913ef9ad /meta/recipes-core/sysvinit/sysvinit-inittab
parent2b6a6cad90bfef3afd5a721ec985f71336914fa7 (diff)
downloadopenembedded-core-contrib-b93369a7943949f51057e0a704f5524ab7682fe6.tar.gz
openembedded-core-contrib-b93369a7943949f51057e0a704f5524ab7682fe6.tar.bz2
openembedded-core-contrib-b93369a7943949f51057e0a704f5524ab7682fe6.zip
sysvinit-inittab: Add wrapper script to verify console exists
Add a wrapper script around getty to check if a given console exists, this allows for multiple Console ttys to be specified for various boards without having additional BSP types just for different console types. [YOCTO #8689] Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/sysvinit/sysvinit-inittab')
-rw-r--r--meta/recipes-core/sysvinit/sysvinit-inittab/start_getty5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty b/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty
new file mode 100644
index 0000000000..6eaeb7a2b0
--- /dev/null
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty
@@ -0,0 +1,5 @@
+#!/bin/sh
+if [ -c /dev/$2 ]
+then
+ /sbin/getty -L $1 $2
+fi