<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 11:29 AM,  <span dir="ltr">&lt;<a href="mailto:leonardo.sandoval.gonzalez@linux.intel.com" target="_blank">leonardo.sandoval.gonzalez@linux.intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2m0" class="a3s aXjCH m158b154f368e9e70">From: Leonardo Sandoval &lt;<a href="mailto:leonardo.sandoval.gonzalez@linux.intel.com">leonardo.sandoval.gonzalez@<wbr>linux.intel.com</a>&gt;<br>
<br>
getty devices were not being removed in some cases because device name<br>
was not at the end of the line, for example a ttyS1 device:<br>
<br>
S1:12345:respawn:/bin/start_<wbr>getty 115200 ttyS1 vt102<br>
<br>
Removing this limitation allows sed to remove any line containing<br>
the device.<br>
<br>
Signed-off-by: Leonardo Sandoval &lt;<a href="mailto:leonardo.sandoval.gonzalez@linux.intel.com">leonardo.sandoval.gonzalez@<wbr>linux.intel.com</a>&gt;<br>
---<br>
 meta/recipes-core/sysvinit/<a href="http://sysvinit-inittab_2.88dsf.bb" rel="noreferrer" target="_blank">sys<wbr>vinit-inittab_2.88dsf.bb</a> | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/recipes-core/sysvinit/<a href="http://sysvinit-inittab_2.88dsf.bb" rel="noreferrer" target="_blank">s<wbr>ysvinit-inittab_2.88dsf.bb</a> b/meta/recipes-core/sysvinit/<a href="http://sysvinit-inittab_2.88dsf.bb" rel="noreferrer" target="_blank">s<wbr>ysvinit-inittab_2.88dsf.bb</a><br>
index c219cbf..dd30f43 100644<br>
--- a/meta/recipes-core/sysvinit/<a href="http://sysvinit-inittab_2.88dsf.bb" rel="noreferrer" target="_blank">s<wbr>ysvinit-inittab_2.88dsf.bb</a><br>
+++ b/meta/recipes-core/sysvinit/<a href="http://sysvinit-inittab_2.88dsf.bb" rel="noreferrer" target="_blank">s<wbr>ysvinit-inittab_2.88dsf.bb</a><br>
@@ -62,7 +62,7 @@ if [ &quot;x$D&quot; = &quot;x&quot; ] &amp;&amp; [ -e /proc/consoles ]; then<br>
                k=`echo ${i} | sed s/^.*\://g`<br>
                if [ -z &quot;`grep ${j} /proc/consoles`&quot; ]; then<br>
                        if [ -z &quot;${k}&quot; ] || [ -z &quot;`grep ${k} /proc/consoles`&quot; ] || [ ! -e /dev/${j} ]; then<br>
-                               sed -i /^.*${j}$/d /etc/inittab<br>
+                               sed -i /^.*${j}/d /etc/inittab</div></blockquote></div><br>This doesn’t check for the end of a word, so it’d match a partial as well. Would that be a problem? i.e. ttyS1 vs ttyS10.<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>