summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/busybox/busybox-inittab_1.31.0.bb19
1 files changed, 10 insertions, 9 deletions
diff --git a/meta/recipes-core/busybox/busybox-inittab_1.31.0.bb b/meta/recipes-core/busybox/busybox-inittab_1.31.0.bb
index c347daf501..61fb8cbad1 100644
--- a/meta/recipes-core/busybox/busybox-inittab_1.31.0.bb
+++ b/meta/recipes-core/busybox/busybox-inittab_1.31.0.bb
@@ -13,15 +13,16 @@ do_compile() {
13} 13}
14 14
15do_install() { 15do_install() {
16 install -d ${D}${sysconfdir} 16 install -d ${D}${sysconfdir}
17 install -D -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab 17 install -D -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
18 tmp="${SERIAL_CONSOLES}" 18 tmp="${SERIAL_CONSOLES}"
19 for i in $tmp 19 [ -n "$tmp" ] && echo >> ${D}${sysconfdir}/inittab
20 do 20 for i in $tmp
21 j=`echo ${i} | sed s/\;/\ /g` 21 do
22 id=`echo ${i} | sed -e 's/^.*;//' -e 's/;.*//'` 22 j=`echo ${i} | sed s/\;/\ /g`
23 echo "$id::respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab 23 id=`echo ${i} | sed -e 's/^.*;//' -e 's/;.*//'`
24 done 24 echo "$id::respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
25 done
25} 26}
26 27
27# SERIAL_CONSOLES is generally defined by the MACHINE .conf. 28# SERIAL_CONSOLES is generally defined by the MACHINE .conf.