<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <div class="moz-cite-prefix">Le 12/07/2018 à 15:48, Guilhem Moulin a
      écrit :</div>
    <blockquote type="cite"
      cite="mid:20180712134820.GA2525@localhost.localdomain">
      <pre wrap="">Why only in cryptopensc and not in cryptroot?  Also /usr/bin/setleds
comes from the ‘kbd’ package which cryptsetup-initramfs doesn't depend
on (it's only a Recommends, not a hard Depends), so `copy_exec` needs to
wrapped to check for the program's existence.
</pre>
    </blockquote>
    Because i don't test with cryptroot. For package depends or
    Recommends, the /usr/share/initramfs-tools/hooks/cryptopensc script
    need 'dpkg-architecture' program to work and it is in 'dpkg-dev'
    package<span class="comment-copy"><code></code></span>.<br>
    <br>
    But you are right, 'setleds'  is not the goods choice to keep
    numlock state.<br>
    I will search a better program.<br>
    <br>
    Regards<br>
    <br>
    <div class="moz-cite-prefix">Le 12/07/2018 à 15:48, Guilhem Moulin a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:20180712134820.GA2525@localhost.localdomain">
      <pre wrap="">Control: severity -1 minor

Hi,

On Thu, 12 Jul 2018 at 15:02:20 +0200, Pascal Vibet - ADACIS wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">So, i apply modifications like this:
in /usr/share/initramfs-tools/hooks/cryptopensc:
[…]
in /usr/share/initramfs-tools/scripts/local-top/cryptopensc:
</pre>
      </blockquote>
      <pre wrap="">
Why only in cryptopensc and not in cryptroot?  Also /usr/bin/setleds
comes from the ‘kbd’ package which cryptsetup-initramfs doesn't depend
on (it's only a Recommends, not a hard Depends), so `copy_exec` needs to
wrapped to check for the program's existence.

</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">INITTY=/dev/tty[1-8]
for tty in $INITTY ; do
    setleds -D +num < $tty
done
</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">
Does that really *preserve* the numlock state?  I'm not familiar with
setleds(1), but according to the manpage it *sets* numlock and changes
the default settings.

Cheers,
</pre>
    </blockquote>
    <br>
  </body>
</html>