summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/sysvinit/sysvinit-inittab/start_getty14
-rw-r--r--meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb1
2 files changed, 14 insertions, 1 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty b/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty
index e15ae35f90..96fd6cfcfd 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty
@@ -13,6 +13,18 @@ active_serial=$(grep "serial" /proc/tty/drivers | cut -d/ -f1 | sed "s/ *$//")
13# Rephrase input parameter from ttyS target index (ttyS1, ttyS2, ttyAMA0, etc). 13# Rephrase input parameter from ttyS target index (ttyS1, ttyS2, ttyAMA0, etc).
14runtime_tty=$(echo $2 | grep -oh '[0-9]') 14runtime_tty=$(echo $2 | grep -oh '[0-9]')
15 15
16# busybox' getty does this itself, util-linux' agetty needs extra help
17getty="/sbin/getty"
18case $(readlink -f "${getty}") in
19 */busybox*)
20 ;;
21 *)
22 if [ -x "/usr/bin/setsid" ] ; then
23 setsid="/usr/bin/setsid"
24 fi
25 ;;
26esac
27
16# Backup $IFS. 28# Backup $IFS.
17DEFAULT_IFS=$IFS 29DEFAULT_IFS=$IFS
18# Customize Internal Field Separator. 30# Customize Internal Field Separator.
@@ -31,7 +43,7 @@ for line in $active_serial; do
31 then 43 then
32 if [ -c /dev/$2 ] 44 if [ -c /dev/$2 ]
33 then 45 then
34 /sbin/getty -L $1 $2 $3 46 ${setsid:-} ${getty} -L $1 $2 $3
35 fi 47 fi
36 break 48 break
37 fi 49 fi
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
index 8585a418ab..bfd890d924 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
@@ -20,6 +20,7 @@ do_install() {
20 install -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab 20 install -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
21 install -d ${D}${base_bindir} 21 install -d ${D}${base_bindir}
22 install -m 0755 ${WORKDIR}/start_getty ${D}${base_bindir}/start_getty 22 install -m 0755 ${WORKDIR}/start_getty ${D}${base_bindir}/start_getty
23 sed -e 's,/usr/bin,${bindir},g' -i ${D}${base_bindir}/start_getty
23 24
24 set -x 25 set -x
25 tmp="${SERIAL_CONSOLES}" 26 tmp="${SERIAL_CONSOLES}"