diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb index 9bd087cbcb..1089edbcb4 100644 --- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb +++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb | |||
@@ -2,7 +2,7 @@ DESCRIPTION = "Inittab for sysvinit" | |||
2 | LICENSE = "GPLv2" | 2 | LICENSE = "GPLv2" |
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" |
4 | 4 | ||
5 | PR = "r6" | 5 | PR = "r7" |
6 | 6 | ||
7 | SRC_URI = "file://inittab" | 7 | SRC_URI = "file://inittab" |
8 | 8 | ||
@@ -26,7 +26,8 @@ do_install() { | |||
26 | for i in $tmp | 26 | for i in $tmp |
27 | do | 27 | do |
28 | j=`echo ${i} | sed s/\;/\ /g` | 28 | j=`echo ${i} | sed s/\;/\ /g` |
29 | echo "${idx}:2345:respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab | 29 | echo "${idx}:12345:respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab |
30 | |||
30 | idx=`expr $idx + 1` | 31 | idx=`expr $idx + 1` |
31 | done | 32 | done |
32 | 33 | ||
@@ -51,6 +52,23 @@ EOF | |||
51 | fi | 52 | fi |
52 | } | 53 | } |
53 | 54 | ||
55 | pkg_postinst_${PN} () { | ||
56 | # run this on the target | ||
57 | if [ "x$D" == "x" ]; then | ||
58 | tmp="${SERIAL_CONSOLES_CHECK}" | ||
59 | for i in $tmp | ||
60 | do | ||
61 | j=`echo ${i} | sed s/^.*\;//g` | ||
62 | if [ -z "`cat /proc/consoles | grep ${j}`" ]; then | ||
63 | sed -i /^.*${j}$/d /etc/inittab | ||
64 | fi | ||
65 | done | ||
66 | kill -HUP 1 | ||
67 | else | ||
68 | exit 1 | ||
69 | fi | ||
70 | } | ||
71 | |||
54 | # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. | 72 | # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. |
55 | # Set PACKAGE_ARCH appropriately. | 73 | # Set PACKAGE_ARCH appropriately. |
56 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 74 | PACKAGE_ARCH = "${MACHINE_ARCH}" |