<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 08/08/2013 10:23 AM, Khem Raj wrote:<br>
    </div>
    <blockquote
cite="mid:CAMKF1sqwzMQb5W2+2VdASiDi2J+R_9gNWAFU0dAftqBtTgVipA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <br>
      <br>
      On Wednesday, August 7, 2013, ChenQi &lt;<a moz-do-not-send="true"
        href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt;
      wrote:<br>
      &gt; On 08/07/2013 10:18 PM, Chris Larson wrote:<br>
      &gt;<br>
      &gt; On Wed, Aug 7, 2013 at 1:08 AM, &lt;<a moz-do-not-send="true"
        href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt;
      wrote:<br>
      &gt;&gt;<br>
      &gt;&gt; From: Chen Qi &lt;<a moz-do-not-send="true"
        href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt;<br>
      &gt;&gt;<br>
      &gt;&gt; The init script for irda writes configuration items to
      /etc/sysconfig/irda<br>
      &gt;&gt; if that file is not available in system. But it's
      actually not necessary,<br>
      &gt;&gt; the behavior doesn't change whether the init script
      writes to the file or not.<br>
      &gt;&gt;<br>
      &gt;&gt; Considering it issues error messages in case of a
      read-only rootfs, I delete<br>
      &gt;&gt; the writing process.<br>
      &gt;&gt;<br>
      &gt;&gt; [YOCTO #4103]<br>
      &gt;&gt; [YOCTO #4886]<br>
      &gt;&gt;<br>
      &gt;&gt; Signed-off-by: Chen Qi &lt;<a moz-do-not-send="true"
        href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt;<br>
      &gt;<br>
      &gt; This is a start, but is incomplete, from what I can tell. As
      mentioned in the other thread, the startup script shouldn't be
      using /etc/sysconfig/ at all, in any form. We use /etc/default/
      for our startup script config files, not /etc/sysconfig/.<br>
      &gt;<br>
      &gt; Yeah, I agree with you.<br>
      &gt; But when I checked the irda source code, I saw that it
      actually could ship its own init script
      (irda-utils-xxx/etc/irda.rc). And I think our init script is
      derived from this one. In its own init script, /etc/sysconfig is
      used.<br>
      &gt; (Of course, I still think /etc/default is a better location
      for its configuration file.)<br>
      &gt;<br>
      &gt;<br>
      &gt; Also, the purpose of this block was clearly to implement a
      default configuration, yet the recipe isn't altered to ship a
      default configuration to provide equivalent functionality.<br>
      &gt;<br>
      &gt; In its source code, there's a default configuration file, and
      we don't use that. I think there might be a reason.<br>
      &gt; So I'm not sure about this one.<br>
      &gt;<br>
      &gt; If you have a patch to fix the irda issue properly, send it
      out and I'll rebase my remote branch and drop this one.<br>
      <br>
      Whether Chris has a patch or not this patch in its form should be
      dropped since there is a better way to do it<br>
      <br>
    </blockquote>
    <br>
    Shipping a default configuration file or using /etc/default as the
    configuration directory? Or something else?<br>
    <br>
    //Chen Qi<br>
    <br>
    <blockquote
cite="mid:CAMKF1sqwzMQb5W2+2VdASiDi2J+R_9gNWAFU0dAftqBtTgVipA@mail.gmail.com"
      type="cite">&gt;<br>
      &gt; Best Regards,<br>
      &gt; Chen Qi<br>
      &gt;<br>
      &gt;<br>
      &gt; --<br>
      &gt; Christopher Larson<br>
      &gt; clarson at kergoth dot com<br>
      &gt; Founder - BitBake, OpenEmbedded, OpenZaurus<br>
      &gt; Maintainer - Tslib<br>
      &gt; Senior Software Engineer, Mentor Graphics<br>
      &gt;
    </blockquote>
    <br>
  </body>
</html>