summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2019-09-12 22:56:24 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-16 22:02:45 (GMT)
commit8202a9ac6a8e2ce2a70d2eef6e1b407298b889d5 (patch)
tree63013bd04a88d51d2accfb4e581320728ee17600 /meta/recipes-core
parent24264cefadf6704e1ca2c1c52473e23a0e4d0d61 (diff)
downloadpoky-8202a9ac6a8e2ce2a70d2eef6e1b407298b889d5.tar.gz
busybox-inittab: minor formatting tweaks
Add an empty line to inittab before the line(s) which start getty. Also cleanup indent in recipe do_install(). (From OE-Core rev: d1955596080f8261efe3b21c5df005648ce207c9) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-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 c347daf..61fb8cb 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.